feat: 楼宇查询连接信息本地保存并默认 GBK 编码
This commit is contained in:
@@ -47,7 +47,7 @@ class InteriorPointTest(unittest.TestCase):
|
||||
path = Path(script.INPUT_CSV)
|
||||
if not path.is_file():
|
||||
self.skipTest("源文件不存在")
|
||||
with path.open(encoding=script.INPUT_ENCODING, newline="") as source:
|
||||
with path.open(encoding="utf-8-sig", newline="") as source: # 当前源文件为 UTF-8 BOM
|
||||
reader = csv.DictReader(source)
|
||||
for _, row in zip(range(200), reader):
|
||||
geometry = wkt.loads(row["WKT"])
|
||||
|
||||
Reference in New Issue
Block a user