python 读取文件时报错UnicodeDecodeError: 'gbk' codec can't decode byte 0x80 in position 205: illegal multibyte sequence

解决办法1:

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

解决办法2:

file = open('order.log','rb')




posted @ 2017-12-22 13:52  技术成就我的梦想  阅读(3676)  评论(0编辑  收藏  举报