📜  将文件另存为泡菜 - Python 代码示例

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

代码示例1
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'