Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python pickle example

import pickle
favorite_color = { "lion": "yellow", "kitty": "red" }
with open( "save.p", "wb" ) as f:
	pickle.dump( favorite_color, f)
with open( "save.p", "rb" ) as f:
	favorite_color = pickle.load(f)
 
PREVIOUS NEXT
Tagged: #python #pickle
ADD COMMENT
Topic
Name
2+1 =