5.2记录
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)
2023-12-14 16:11:28
5.2记录
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)
下一篇:高效遍历Java容器