python 读写 json 文件

import json

with open("D:\\研究生工作\\dataset generation\\file\\obj_vec_dict.json") as f:
    obj_vec = json.load(f)

 

import json

with open("D:\\研究生工作\\dataset generation\\file\\obj_vec_dist.json", 'w') as f:
    json.dump(obj_vec_dist, f)

 

posted @ 2019-11-26 12:08  xd_xumaomao  阅读(131)  评论(0编辑  收藏  举报