📜  python 从文件中读取字典 - Python 代码示例

📅  最后修改于: 2022-03-11 14:46:09.055000             🧑  作者: Mango

代码示例1
import ast

with open("/path/to/file", "r") as data:
    dictionary = ast.literal_eval(data.read())