📜  在pickle python代码示例中保存东西

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

代码示例4
with open('mypickle.pickle', 'wb') as f:
    pickle.dump(some_obj, f)

# note that this will overwrite any existing file
# in the current working directory called 'mypickle.pickle'