原文来源:https://www.zhihu.com/question/22699590

编码问题错误,读入文件的时候指定编码即可。

with open(fname, encoding='utf-8') as data_file:

相关文章:

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