python3.4 UnicodeDecodeError: 'gbk' codec can't decode byte 0xff in position

实用python的时候 打开一个csv的文件出现一下错误。

然后百度了一下,找到了对应的解决方案

1  with open('History.csv','r',encoding='utf-8') as f:

在后面加上encoding=utf-8即可

相关文章:

  • 2022-12-23
  • 2021-10-26
  • 2021-07-22
  • 2021-09-21
  • 2022-01-16
  • 2021-06-14
  • 2021-12-15
  • 2021-04-19
猜你喜欢
  • 2021-10-25
  • 2021-09-12
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-28
相关资源
相似解决方案