Python 输出01到12-12个月(两位数)
for month in range(1,13): if month < 10 : month = '0{}'.format(month) print month 运行结果: 01 02 03 04 05 06 07 08 09 10 11 12