JSON常用代码 2021-05-13 | 编程 | reads 格式化输出: 1 2 3 import json json.dumps(x, ensure_ascii=False, indent=2) python