Skip to content

Instantly share code, notes, and snippets.

@peroon
Created January 5, 2017 06:05
Show Gist options
  • Select an option

  • Save peroon/455a58c0ea053bbe8aedad8bac8070ee to your computer and use it in GitHub Desktop.

Select an option

Save peroon/455a58c0ea053bbe8aedad8bac8070ee to your computer and use it in GitHub Desktop.
c = [1,2,3]
import pickle
f = open("sample.pickle", "w")
pickle.dump(c, f)
f.close()
print "load from pickle"
f = open("sample.pickle", "r")
d = pickle.load(f)
f.close()
print d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment