Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python save dictionary to file

with open('saved_dictionary.pkl', 'wb') as f:
    pickle.dump(dictionary, f)
        
with open('saved_dictionary.pkl', 'rb') as f:
        loaded_dict = pickle.load(f)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #save #dictionary #file
ADD COMMENT
Topic
Name
7+4 =