top of page
geipracarisnel

Read-dictionary-from-file-python

Save the dictionary to txt file and restore in python Feel free to store some information in dictionary D1 and print The printed result is: {'123123': ['Zhang San'​, 'Li Si', ...












read-dictionary-from-file-python


Aug 15, 2020 — import ast with open("/path/to/file", "r") as data: dictionary = ast.literal_eval(data.​read()) 3925e8d270





1 view0 comments

Recent Posts

See All

Comments


bottom of page