UnicodeDecodeError: ‘gbk’ codec can’t decode byte 0xa4 in position 4: illegal multibyte sequence
python读取文件时提示UnicodeDecodeError: ‘gbk’ codec can’t decode byte 0xa4 in position 4: illegal multibyte sequence
解决办法:
FILE_OBJECT= open('order.log','r', encoding='UTF-8')