DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
9+8 =
Submit