转载 https://www.cnblogs.com/mengyu/p/6638975.html
UnicodeDecodeError: ‘gbk’ codec can’t decode byte 0xe9 in position 1497367: illegal multibyte sequence
修改方式:
1:
with open('order.log','r', encoding='UTF-8') as f:
text = f.read()
2:
with open('science.txt', 'rb') as f:
text = f.read()