Closed htycode closed 3 years ago
执行下面这行代码 报错了: df = cpca.transform(["浙江省 织里镇 吴兴区织里镇织纺路731号中通快递2栋4号楼中间"], open_warning, cut=False)
异常信息: File "C:\Python37\lib\site-packages\cpca__init__.py", line 198, in _fill_city if umap.get(pca.area): AttributeError: 'bool' object has no attribute 'get'
第二个参数并不是 open_warning,应该写做 open_warning=true/false
不过最新版本已经不支持这个参数了
执行下面这行代码 报错了: df = cpca.transform(["浙江省 织里镇 吴兴区织里镇织纺路731号中通快递2栋4号楼中间"], open_warning, cut=False)
异常信息: File "C:\Python37\lib\site-packages\cpca__init__.py", line 198, in _fill_city if umap.get(pca.area): AttributeError: 'bool' object has no attribute 'get'