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  阅读(93)  评论(0)    收藏  举报