output = open('data.pkl', 'wb') pickle.dump(data1, output) pkl_file = open('data.pkl', 'rb') data1 = pickle.load(pkl_file)
python_序列化
原文:https://www.cnblogs.com/wujingqiao/p/11873118.html