完整报错是:
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x80 in position 0: invalid start byte
读取时
open
函数添加
'rb'
参数,如:
import pickle
dict_data = pickle.load(open(pkl_file,'rb'))
固定写法哈~