The invention relates to a carbon nanotube/poly Schiff base polymer, a preparation method thereof, and an application thereof. The invention relates to a composite material of carbon nanotube and poly Schiff base, a preparation method thereof, and an application thereof. With the polymer and the methods provided by the invention, problems of existing poly Schiff base of low photoelectrochromic response sensitivity and poor thermal stability are solved. According to the invention, aminated carbon nanotubes, aromatic diamine monomers, and dialdehyde compounds are subject to an in situ polymerization reaction, such that the product is obtained. First, aminated carbon nanotubes and part of dialdehyde compounds are mixed and heated until reflux liquid is generated; then aromatic diamine monomers and rest dialdehyde compounds are mixed and injected in batches, and the reaction is continued, such that the product is obtained. The polymer provided by the invention provides electrochromic, acidichromic, and photochromic performances, and has good thermal stability. Therefore, the polymer can be used in displays and acid-base sensors. The polymer has high electrochromic, acidichromic, and photochromic sensitivity, and provides reversible acidichromic and photochromic performances.