当使用pickle.load(f)或者使用pickle.load(f.read)时出现错误: file must have ‘read’ and ‘readline’ attributes
解决办法:
pickle.load(f,encoding=“latin1”)即可解决
pickle.load()问题 file must have 'read' and 'readline' attributes
最新推荐文章于 2023-06-28 11:54:02 发布
当使用pickle.load(f)或者使用pickle.load(f.read)时出现错误: file must have ‘read’ and ‘readline’ attributes
解决办法:
pickle.load(f,encoding=“latin1”)即可解决