解决办法1.
FILE_OBJECT= open('order.log','r', encoding='UTF-8')
解决办法2
FILE_OBJECT= open('order.log','rb')
FILE_OBJECT= open('order.log','r', encoding='UTF-8')
FILE_OBJECT= open('order.log','rb')
本文标题:python 读取文件时报错UnicodeDecodeError
本文链接:https://www.haomeiwen.com/subject/khmadctx.html
网友评论