dict和OrderDict写入文件dict的序列化与反序列化:np.array的序列化与反序列化
注意:一定不能用np.save(path,dict)写入文件。。。内容会出错用dict序列化与反序列化的操作:dict的序列化与反序列化:with open("word2int.txt", "wb") as f: pickle.dump(word2int,f)with open("word2int.txt", "rb+") as f: d = pickle.load(f)写文件:d = dict(name