pickle Posted on 2017-05-01 | In work tips | | Visitors pickle 模块的简易使用序列化存储1234import pickledata = ...f = open('file.pkl','wb')pickle.dump(data, f) 序列化读取123import picklepkl_file = open('file.pkl','rb')data = pickle.load(pkl_file) Donate comment here Donate WeChat Pay