1、安装cpca库 pip install cpca 2、基本使用 import cpca location_str = [ "天津阿贾克斯就打开房间啊开始", "河北省石家庄市动物园" ] df = cpca.transform(location_str, pos_sensitive=True) print(df)