使用json.dump()
的时候设置一下indent
参数的值就好了。比如json.dump(json_dict, f, indent=4), ensure_ascii=False,写入中文
转载于:https://www.cnblogs.com/callyblog/p/11051672.html
使用json.dump()
的时候设置一下indent
参数的值就好了。比如json.dump(json_dict, f, indent=4), ensure_ascii=False,写入中文
转载于:https://www.cnblogs.com/callyblog/p/11051672.html