Last active
December 3, 2017 18:28
-
-
Save osori/8208fdad72b6bee6c9449316856d5683 to your computer and use it in GitHub Desktop.
Pickling in Python (Object serialization)
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
import pickle | |
with open("myobject.lq", "wb") as file: | |
pickle.dump(object(), file) | |
# object() 자리에 파일로 내보내고 싶은 객체를 넣으면 된다. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment