python读取csv文件出错:显示utf-8编码问题该怎么解决

UnicodeDecodeError when reading CSV file in Pandas with Python
解决方法:之前试了用
encoding = "utf-8"没有用,后面改为encoding = "ISO-8859-1"

可以使用,在此mark一下。亲测可用

参考:https://blog.csdn.net/yimixgg/article/details/80088809?utm_medium=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-1.nonecase&depth_1-utm_source=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-1.nonecase

参考链接:https://stackoverflow.com/questions/18171739/unicodedecodeerror-when-reading-csv-file-in-pandas-with-python

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章