30
Oct.2019
for i in range(100):
print "%02d" % i
00
01
02
03
04
05
06
07
08
...
99
0为占位符 2为共几位,不足的前面补0,
例如: %05d
输出: 00001 00099 09999 这样的五位数
相关日志
如何下载腾讯视频,并将 ts视频片段合并
解决unicodedecodeerror ascii codec can’t decode byte 0xd7 in position 9 ordinal not in range(128)
SAE Python Django试用笔记(二)
python中时间处理datetime模块的timedelta用法
如何下载腾讯视频,并将 ts视频片段合并
解决unicodedecodeerror ascii codec can’t decode byte 0xd7 in position 9 ordinal not in range(128)
SAE Python Django试用笔记(二)
python中时间处理datetime模块的timedelta用法
