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 pythonprogramming.net #
 
PREVIOUS NEXT
Tagged: #pickle #python
ADD COMMENT
Topic
Name
2+8 =