Created
August 11, 2016 02:15
-
-
Save fengxuway/c91470c5aa85ae29bdfe5c4021c4747d to your computer and use it in GitHub Desktop.
Python序列化对象
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 | |
data = {'username': 'fengxu'} | |
s = pickle.dumps(data) | |
data2 = pickle.loads(s) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment