📜  使用 pickle 写入数据 - Python 代码示例

📅  最后修改于: 2022-03-11 14:47:01.439000             🧑  作者: Mango

代码示例1
import pickle

example_dict = {1:"6",2:"2",3:"f"}

pickle_out = open("dict.pickle","wb")
pickle.dump(example_dict, pickle_out)
pickle_out.close()