Python 写json文件(将一个字典变量,写成json)

def updateConfigFile(self,result):
    with open('software_try.json', 'w') as f:
        json.dump(result, f)
posted @ 2021-05-18 16:09  bH1pJ  阅读(81)  评论(0编辑  收藏  举报