当前位置: 代码迷 >> 综合 >> json保存格式标准化的小trick,使用indent参数
  详细解决方案

json保存格式标准化的小trick,使用indent参数

热度:55   发布时间:2024-01-24 05:11:53.0

话不在多,有效即可 

json.dump(web_para_json,open(save_path,"w"),indent=4)