The present invention provides a complex of formula (I) or a solvate thereof, wherein n is 1 to 4. The present invention also provides a pharmaceutical composition and an application of the pharmaceutical composition in preventing or treating pain of, during, or after surgery. According to the technical solution of the present invention, provided is a drug with a simple production process and being capable of long-term sustained release of a local anesthetic in the body, and the local anesthetic can be continuously released for at least three days. The drug extends an analgesic effect on pain after surgery, is convenient to use for doctors and patients, and has good compliance.La présente invention concerne un complexe de formule (I) ou un solvate de celui-ci. Dans la formule n vaut 1 à 4. La présente invention concerne également une composition pharmaceutique et une application de la composition pharmaceutique dans la prévention ou le traitement de la douleur, pendant ou après une chirurgie. Selon la solution technique de la présente invention, l'invention concerne un médicament ayant un procédé de production simple et étant capable d'une libération prolongée à long terme d'un anesthésique local dans le corps, et l'anesthésique local peut être libéré de manière continue pendant au moins trois jours. Selon la présente invention, le médicament répand un effet analgésique sur la douleur après une chirurgie, ayant une utilisation pratique par les médecins et les patients, et présentant une bonne conformité.本发明提供式(I)的复合物或其溶剂合物(其中n为1至4)、药物组合物以及所述药物组合物用于预防或治疗手术、手术中和手术后疼痛中的应用。根据本发明的技术方案,提供了一种生产工艺简单、可在体内长时间稳定释放出局麻药物的药物,其至少能够持续释放三天以上,既能延长手术后疼痛的镇痛作用,也能方便医生和患者使用,具有良好的用药依从性。