fix: default encoding

This commit is contained in:
abc1763613206@Server
2024-05-31 06:26:39 +00:00
parent 8c929c7a46
commit 1dcab05030

View File

@@ -166,7 +166,7 @@ def main():
f_csv = csv.reader(f) f_csv = csv.reader(f)
headers = next(f_csv) headers = next(f_csv)
num = 1 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) print('Channel,Group,Source,Link', file=f0)
for row in f_csv: for row in f_csv:
try: try: