Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python read dictionary from file

import ast

with open("/path/to/file", "r") as data:
    dictionary = ast.literal_eval(data.read())
 
PREVIOUS NEXT
Tagged: #python #read #dictionary #file
ADD COMMENT
Topic
Name
2+1 =