python 打开文件:
f
= open(logpath
, 'r')
buff
= f
.read
()
出错:UnicodeDecodeError: 'gbk' codec can't decode byte 0xbd in position 135129: illegal multibyte sequence
解决办法:
f
= open(logpath
, 'r', encoding
='utf-8')
转载请注明原文地址: https://lol.8miu.com/read-2878.html