python读取文件时报错: "UnicodeDecodeError: 'gbk' codec can't decode byte 0x99 in position 1008: illegal multibyte sequence"
办法1.
open('order.log','r', encoding='UTF-8')
办法2.
open('order.log','rb')
python读取文件时报错: "UnicodeDecodeError: 'gbk' codec can't decode byte 0x99 in position 1008: illegal multibyte sequence"
办法1.
open('order.log','r', encoding='UTF-8')
办法2.
open('order.log','rb')