with open(jsonPath,'r',encoding = 'utf-8') as load_f:
load_dict = json.load(load_f)
#将获取到的appToken覆盖到data_config下datajson.json文件对应的操作中,不是登陆
load_dict[jsonkey]['appToken'] = res['data']['appToken']
with open(jsonPath,'w',encoding = 'utf-8') as dump_f:
json.dump(load_dict,dump_f,indent = 3,sort_keys = True)
#执行接口时,从datajson.json的相应操作中,获取到最新的appToken