首先安装pyltp pytlp项目首页 单例类(第一次调用时加载模型) class Singleton(object): def __new__(cls, *args, **kwargs): if not hasattr(cls, '_the_instance'): cls._the_instance = object.__new__(cls, *args, **kwargs) return cls._the_instance 使用pyltp提取地址 import os from pyltp i