Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import pickle
- a = {'hello': 'world'}
- with open('filename.pickle', 'wb') as handle:
- pickle.dump(a, handle, protocol=pickle.HIGHEST_PROTOCOL)
- with open('filename.pickle', 'rb') as handle:
- b = pickle.load(handle)
- print(a == b)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement