Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

pickle python

   1 # Save a dictionary into a pickle file.
   2 import pickle
   3 
   4 favorite_color = { "lion": "yellow", "kitty": "red" }
   5 
   6 pickle.dump( favorite_color, open( "save.p", "wb" ) )
Source by wiki.python.org #
 
PREVIOUS NEXT
Tagged: #pickle #python
ADD COMMENT
Topic
Name
4+6 =