python生成100以内格式化的数 # -*- coding:utf-8 -*- # 生成000开头的三位数:%03d for i in range(100): print('%03d'%i) 生成数字:000,001,002 ....... 099