To expand the design freedom of metalens, realize multifunctional metalens, and reduce the design difficulty of metasurface devices, an inverse method based on gradient descent optimization is proposed. Combined with the back-propagation algorithm to solve the gradient information, the polarization-insensitive achromatic metalens design based on a single-layer structure is realized. Using two-photon polymerization 3D printing technology, the processing technology was explored and the processing of metalens with a lateral resolution of 200 nm was achieved. The experimental results showed that the focal length of the processed metalens deviated from the design value by less than 3%. Compared with other reported works, this study combines the design flexibility of the inverse design method with the three-dimensional processing advantages of the two-photon polymerization 3D printing method, providing a new solution for designing and processing high-degree-of-freedom metasurfaces, giving full play to the advantages of light field control of metasurfaces, and promoting the engineering application of metasurfaces.