The invention discloses a composite electrode which prepares polyaniline nano-wires with high purity and a method for preparing the composite electrode, which belongs to the technique for preparing polyaniline nano-wire materials. A substrate of the composite electrode is stainless steel, titanium, nickel, cobalt, aluminum, iron, copper, graphite or glassy carbon, and thin film of polysulfone, polyether sulfone, polyimide or polyether imide is compounded on the substrate. The method for preparing the composite electrode comprises following steps: dissolving the polysulfone, the polyether sulfone, the polyimide or the polyether imide in N, N-dimethylacetamide, N, N-dimethylformamide, N-methyl pyrrolidone, dimethyl sulfoxide or m-cresol, preparing even and transparent casting solution, coating the casting solution on the surface of a substrate electrode, then, rapidly dipping the electrode in coagulation bath to finish phase inversion, and obtaining the composite electrode. The method ofthe invention has the advantages that the composite electrode is used as a working electrode to prepare the polyaniline nano-wires, which solves the problem that polyaniline particles exist in the polyaniline nano-wires and increases the purity of the polyaniline nano-wires.