Skip to content

Instantly share code, notes, and snippets.

@enorms
Created August 13, 2021 23:58
Show Gist options
  • Save enorms/b519f8dd3f135cdfa646a22821afca0f to your computer and use it in GitHub Desktop.
Save enorms/b519f8dd3f135cdfa646a22821afca0f to your computer and use it in GitHub Desktop.
import pickle
a = {'hello': 'world'}
with open('data.pickle', 'wb') as file:
pickle.dump(a, file)
with open('data.pickle', 'rb') as file:
b = pickle.load(file)
print(a == b)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment