Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Save object
- import pickle
- f = open("/tmp/a.pkl", "wb")
- pickle.dump(obj, f, pickle.HIGHEST_PROTOCOL)
- f.close()
- # Load object
- f = open("/tmp/a.pkl", "rb")
- obj = pickle.load(f)
- f.close()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement