编码名称 | 用途 |
---|---|
utf8 | 所有语言 |
gbk | 简体中文 |
utf8 | 所有语言 |
gb2312 | 简体中文 |
utf8 | 所有语言 |
gb18030 | 简体中文 |
big5 | 繁体中文 |
big5hkscs | 繁体中文 |
代码如下
out=open('d:/分表.csv','w',newline='\n',encoding='gb18030') csv_write=csv.writer(out,dialect='excel') csv_write.writerow(cols[1:7])
参考来源:
(https://blog.csdn.net/jim7424994/article/details/22675759)