Created
June 12, 2018 20:32
-
-
Save yang-zhang/0c0af4942ecf5b7fcc5b6ede8506ffb4 to your computer and use it in GitHub Desktop.
Cheatsheet pickle
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pickle.dump(something, open('something.p', 'wb')) | |
something = pickle.load(open('something.p', 'rb')) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment