Python读取CSV文件,报错:UnicodeDecodeError: 'gbk' codec can't decode byte 0xa7 in position 727: illegal multibyte sequence

Python读取CSV文件,报错:UnicodeDecodeError: 'gbk' codec can't decode byte 0xa7 in position 727: illegal multibyte sequence

解决办法:

在语句open(sFileName,newline='')中,增加encoding='UTF-8',如下:

open(sFileName,newline='',encoding='UTF-8')

上一篇:下载PHPDroid: 基于WebView和PHP内置HTTP服务器开发Android应用


下一篇:python pip install error