1.如何生成定长比如10长度的数字字符串,前面补零
str(88).zfile(10)
2.json.dumps 参数indent有什么用?
不是用indent,那么输出文件没有换行,看着很不优美。使用indent=4后,有了换行,有了缩进