错误:
python读取文件时提示"UnicodeDecodeError: 'gbk' codec can't decode byte 0x80 in position 205: illegal multibyte sequence"
解决:
第一种方法
FILE_OBJECT= open('order.log','r', encoding='UTF-8')
第二种方法
FILE_OBJECT= open('order.log','rb')
python读取文件时提示"UnicodeDecodeError: 'gbk' codec can't decode byte 0x80 in position 205: illegal multibyte sequence"
FILE_OBJECT= open('order.log','r', encoding='UTF-8')
FILE_OBJECT= open('order.log','rb')