python生成6位纯数字

 

使用for循环生成6位纯数字,位数不足使用0填充。

 

for i in range(0,1000000):
i=str(i)
print(i.zfill(6))

 

 

posted @ 2019-12-10 18:12  relax.1949  阅读(3305)  评论(0编辑  收藏  举报