f = open(‘testData’)
testData = pickle.load(f)
错误提醒=>
UnicodeDecodeError: ‘gbk’ codec can’t decode byte 0x80 in position 0: illegal multibyte sequence
修改为
f = open(‘testData’, ‘rb+’)
testData = pickle.load(f)
f = open(‘testData’)
testData = pickle.load(f)
错误提醒=>
UnicodeDecodeError: ‘gbk’ codec can’t decode byte 0x80 in position 0: illegal multibyte sequence
修改为
f = open(‘testData’, ‘rb+’)
testData = pickle.load(f)