python 中str format 格式化数字补0方法时间:2023-03-09 17:09:34 >>> "{0:03d}".format(1)'001'>>> "{0:03d}".format(10)'010'>>> "{0:03d}".format(100)'100'