解决使用pickle.dump出现cannot serialize a bytes object larger than 4 GiB的问题
2019-05-12 16:44
4379 查看
直接在pickle.dump中增加一个protocol = 4这个参数就行。
[code]import pickle pickle.dump(data,open('file','wb'),protocol = 4)
相关文章推荐
- Python3.5 TypeError: cannot use a string pattern on a bytes-like object问题解决
- jQuery使用serialize()表单序列化时出现中文乱码问题的解决办法
- 解决使用maven的java web项目导入或新建添加pom配置后出现的有关问题 -cannot be read or is not a valid ZIP file
- 关于出现The type java.io.ObjectInputStream cannot be resolved.的问题解决
- 解决使用maven的java web项目导入后出现的有关问题 -cannot be read or is not a valid ZIP file
- Android项目导入出现The type java.lang.Object cannot be resolved.问题解决办法!!
- 解决命令启动Android模拟器出现lib64OpenglRender.so: cannot open shared object file问题
- fedora20 执行 arm-linux-gcc 出现 libz.so.1: cannot open shared object file问题解决方案
- 解决使用maven的java web项目导入后出现的有关问题, -cannot be read or is not a valid zip file
- 关于使用 session_start 出现的 Warning: session_start(): Cannot send sessioncache limiter - 问题的解决
- 解决使用Genymotion出现Unable to start the virtual device.VirtualBox cannot start the virtual device.问题
- Python学习笔记:学习爬虫时遇到的问题TypeError: cannot use a string pattern on a bytes-like object 与解决办法
- python32版本,出现问题“struct.error: argument for 's' must be a bytes object”的解决办法
- Android项目导入出现The type java.lang.Object cannot be resolved.问题解决办法!! .
- jQuery使用serialize()表单序列化时出现中文乱码问题的解决办法
- jQuery使用serialize()表单序列化时出现中文乱码问题的解决办法
- foobar2000使用cue文件播放时出现Unable to open item for playback (Object not found):的问题解决
- vs2008与IIS 7.0使用在vista上时出现的问题及解决方法(Internet Explorer 无法显示该页面)(VS2008: IE Cannot Display Web Page)
- Python学习笔记:学习爬虫时遇到的问题TypeError: cannot use a string pattern on a bytes-like object 与解决办法
- https使用HttpWebRequest出现错误:System.IO.IOException: Received an unexpected EOF or 0 bytes from the transport stream.的解决方法