Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save sai10/0559c0cd1a34d96c78a855810e9942a9 to your computer and use it in GitHub Desktop.
Save sai10/0559c0cd1a34d96c78a855810e9942a9 to your computer and use it in GitHub Desktop.
import pickle
a = [1,2]
b = [3,4]
with open("tmp.pickle", "wb") as f:
pickle.dump((a,b), f)
with open("tmp.pickle", "rb") as f:
a,b = pickle.load(f)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment