📅  最后修改于: 2022-03-11 15:03:01.158000             🧑  作者: Mango
import json
path="......"
with open(path) as f:
obj = json.load(f)
obj["data"].append({"name":"hayder zaeim"})
with open(path,"w+") as of:
json.dump(obj,of)