UnicodeDecodeError: ‘gbk‘ codec can‘t decode byte 0xa4 in position 127: illegal multibyte sequence
python读取文件时提示UnicodeDecodeError: ‘gbk‘ codec can‘t decode byte 0xa4 in position 127: illegal multibyte sequence
解决办法:
FILE_OBJECT= open(‘order.log‘,‘r‘, encoding=‘UTF-8‘)
python 读取文件时报错: UnicodeDecodeError: 'gbk' codec can't decode byte 0xa4 in position 127: illegal multibyte sequence
原文地址:https://www.cnblogs.com/Allen-rg/p/9771697.html
时间: 2024-10-18 14:14:04