Python读取json里的内容

import json

with open("config.json", "r") as f:

    opt = json.load(f)

datapath = opt["aaa"]["datapath"]

 

posted @ 2021-05-11 16:12  bH1pJ  阅读(75)  评论(0编辑  收藏  举报