data=json.dumps(字典,indent=4,sort_keys=True) print(data)
Home » Posts 用Json将字典格式化输出 March 20, 2022 · 1 min · 编程笔记本 | Suggest Changes data=json.dumps(字典,indent=4,sort_keys=True) print(data)