UnicodeDecodeError: 'gbk' codec can't decode byte 0x80 in position 0: illegal multiby

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容器