NOVELTY - Nitrogen and phosphorus are removed from wastewater by placing electrodes in electrolytic bath (2) having 4-20 pairs of electrode couples; treating wastewater for electrolytic nitrogen removal, where graphite electrode is anode while iron panel electrode is cathode, and exchanging current direction when pH value of the solution is lower than 5; treating wastewater for electrolytic phosphorus removal, where when pH value of solution is higher than 8, the current direction is exchanged again; and discharging deposited sludge, and discharging water from water discharging pipe at same time.    USE - Method for removing nitrogen and phosphorus from wastewater (claimed).    ADVANTAGE - The method performs optimization and integration according to change of the parameter such as electrolysis time, current density, pH value, and removal efficiency of contaminant; does not need medicament during process; removes nitrogen nutrient salt, phosphorus nutrient salt, and organic contaminant in a short time; and is carried out in small floor area.    DETAILED DESCRIPTION - The nitrogen and phosphorus are removed from wastewater by:    (A) placing 1-2 rows of electrodes in electrolytic bath (2) having 4-20 pairs of electrode couples, where each electrode couple comprising iron panel electrode (5) and graphite electrode (4), and introducing wastewater into electrolytic bath from water inlet pipe (1), where aeration device (3) at bottom of electrolytic bath is opened;    (B) treating wastewater for electrolytic nitrogen removal, where graphite electrode is anode while iron panel electrode is the cathode, and exchanging current direction when pH value of the solution is lower than 5;    (C) treating wastewater for electrolytic phosphorus removal, where when pH value of solution is higher than 8, the current direction is exchanged again;    (D) carrying out electrolytic nitrogen removal and electrolytic phosphorus removal treatment for 2-3 times, where pH value is kept between 5-8;    (E) closing aeration device when the treatment is finished, and standing for 10-20 minutes; and    (F) opening valve, discharging deposited sludge from sludge discharging pipe, and discharging water from water discharging pipe at same time.    DESCRIPTION OF DRAWING(S) - The drawing is a schematic diagram illustrating a method for removing nitrogen and phosphorus from wastewater.    Water inlet pipe (1)    Electrolytic bath (2)    Aeration device (3)    Graphite electrode (4)    Iron panel electrode (5)