写 import pickle data=[[1,2,3],1,2,3] save=open("save.dat",'wb') pickle.dump(data,save) save.close() 读 import pickle load=open("save.dat",'rb') data=pickle.load(load) load.close() print(data)