Inorganic porous nanofibers with surfaceinterface defects are prepared through humidity-controlled electrospinninghigh-temperature annealing technology. Under the irradiation of light sources of different wavelengths (380~780 nm), the bound electrons stored in the valence band can be excited to the conduction band to form free electrons on the surface of the material, generating different intensities of microcurrents, light sensitivitymicrocurrent changes. Because the "inorganic nanofiber" technology has high uniquenesshigh product compatibility, it can be applied to a wide range of markets.