def picklesave(obj,file):
ff = open(file,'wb')
pickle.dump(obj,ff)
ff.close()
def pickleload(file):
ff = open(file,'rb')
obj = pickle.load(ff)
ff.close()
return obj
python pickle读取,储存数据
最新推荐文章于 2024-09-05 22:38:42 发布