From 231284f652dee54f2b47409d587b1a3dc7c56d53 Mon Sep 17 00:00:00 2001 From: chenzenghui Date: Fri, 12 Jan 2024 00:53:18 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20ENVIxml2csv=5Fczh.py?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ENVIxml2csv_czh.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ENVIxml2csv_czh.py b/ENVIxml2csv_czh.py index 5a10293..d7c1ac8 100644 --- a/ENVIxml2csv_czh.py +++ b/ENVIxml2csv_czh.py @@ -17,7 +17,7 @@ root = tree.getroot() # 创建CSV文件 -with open(csv_file, 'w', newline='', encoding='UTF-8') as csvfile: +with open(csv_file, 'a', newline='', encoding='UTF-8') as csvfile: csvwriter = csv.writer(csvfile) # 写入CSV标题行 csvwriter.writerow(['parent_id','id','covernm','roi_polygon'])