二进制读取文件,出现以下报错:
UnicodeDecodeError: 'ascii' codec can't decode byte 0xf0 in position 6: ordinal not in range(128)
with open(model_file,'rb') as str: #二进制
data_value=pickle.load(str)
model_file是文件路径及名字,出错位置在第二行
二进制读取文件,出现以下报错:
UnicodeDecodeError: 'ascii' codec can't decode byte 0xf0 in position 6: ordinal not in range(128)
with open(model_file,'rb') as str: #二进制
data_value=pickle.load(str)
model_file是文件路径及名字,出错位置在第二行