python3“腌制”数据
摘要:
import pickle '''必须以二进制模式打开文件'''with open('mydata.pickle', 'wb') as mysavedata: '''使用dump()保存数据''' pickle.dump([1, 2, 'three'], mysavedata) with open( 阅读全文
posted @ 2017-09-14 15:25 sammy1989 阅读(168) 评论(0) 推荐(0) 编辑