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'])