Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

pickle python

import pickle

a = {'hi': 'everybody'}

with open('filename.pickle', 'wb') as f:
    pickle.dump(a, f, protocol=pickle.HIGHEST_PROTOCOL)

with open('filename.pickle', 'rb') as f:
    b = pickle.load(f)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #pickle #python
ADD COMMENT
Topic
Name
1+7 =