标签:python pickle
import pickle
f=file(‘asdf.txt‘,‘wb‘)
pickle.dump(saved_info,f)#保存pickle信息
f.close()
f=file(asdf.txt,‘rb‘)
pickle.load(f) #加载pickle信息
python学习笔记三 pickle序列化
原文地址:http://749807.blog.51cto.com/739807/1568274