python 讀取文件時報錯UnicodeDecodeError: 'gbk' codec can't decode byte 0x80 in position 205: illegal multib

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

解決辦法1.spa

  

FILE_OBJECT= open('order.log','r', encoding='UTF-8')

解決辦法2.code

  

FILE_OBJECT= open('order.log','rb')
相關文章
相關標籤/搜索