python 读取文件时报错UnicodeDecodeError: 'gbk' codec can't decode byte 0x80 in position 205: illegal multibyte sequence

python读取文件时提示"UnicodeDecodeError: 'gbk' codec can't decode byte 0x80 in position 205: illegal multibyte sequence"

解决办法1.

  

FILE_OBJECT= open('data.txt','r', encoding='UTF-8')

解决办法2.

  

FILE_OBJECT= open('data.txt','rb')

python读取文件时提示"UnicodeDecodeError: 'gbk' codec can't decode byte 0x80 in position 205: illegal multibyte sequence"

解决办法1.

  

FILE_OBJECT= open('data.txt','r', encoding='UTF-8')

解决办法2.

  

FILE_OBJECT= open('data.txt','rb')

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-05
猜你喜欢
  • 2021-12-16
  • 2021-10-09
  • 2021-09-21
  • 2021-12-09
  • 2022-12-23
相关资源
相似解决方案