📜  将对象写入文件 python 代码示例

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

代码示例1
import dill

# Save the file
dill.dump(myObject, file = open("myObject.pickle", "wb"))

# Reload the file
myObject = dill.load(open("myObject.pickle", "rb"))