The invention provides a preparation method of a quasi-
polyrotaxane film and a
polyrotaxane film prepared thereof. The preparation method comprises the steps that S1, a
polymer containing a
polycaprolactone chain segment serves as a guest molecule,
pillararene containing an
azobenzene group serves as a host molecule, the guest molecule and the host molecule are fully dissolved in an
organic solvent at the temperature of 0-50 DEG C according to the
molar ratio of 1: (1-1000), and a quasi-
polyrotaxane solution is formed; and S2, the quasi-polyrotaxane solution is sprayed at the speed of 0.2-60 mL / h through an
injection pump by adopting an electrostatic spraying technology under the conditions that the
voltage is 5-40 KV, the receiving distance is 5-30 cm and the
humidity is 50% RH to 90% RH, so as to obtain the quasi-polyrotaxane film. According to the method, raw materials are easy to obtain, the cost is low, operation is easy, the requirement for equipment is low, and repeated writing and erasing of information on the film can be achieved through
color changes caused by light responsiveness of
azobenzene groups in the quasi-polyrotaxane film.