浏览代码

Merge branch 'dev-python'

rambo 11 月之前
父节点
当前提交
22c32af966
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      python/services/deal_cutout.py

+ 1 - 1
python/services/deal_cutout.py

@@ -139,7 +139,7 @@ class DealModelForm:
     def addData2Csv(self,data):
         name_list = ['file_name', 'file_e', 'file_path', 'file','root_path','need_cutout','image_url','generate_id','status'] 
         isExist = os.path.exists(self.csvName)
-        csvfile = open(self.csvName,"a")
+        csvfile = open(self.csvName,"a", encoding='utf-8-sig')
         writer = csv.writer(csvfile)
             #先写入columns_name
         if isExist == False: