From 1dcab0503029febe17d3d0ee63390fe271198cda Mon Sep 17 00:00:00 2001 From: "abc1763613206@Server" Date: Fri, 31 May 2024 06:26:39 +0000 Subject: [PATCH] fix: default encoding --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index 9d55484..9f9054e 100644 --- a/main.py +++ b/main.py @@ -166,7 +166,7 @@ def main(): f_csv = csv.reader(f) headers = next(f_csv) num = 1 - with open('data{}.csv'.format(fulltimes), 'a+') as f0: # 写入检测后新data + with open('data{}.csv'.format(fulltimes), 'a+', encoding='gb18030') as f0: # 写入检测后新data print('Channel,Group,Source,Link', file=f0) for row in f_csv: try: