python生成6位纯数字

时间:2019-12-10 19:28:59   收藏:0   阅读:376

 

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

 

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

 

 

原文:https://www.cnblogs.com/relax1949/p/12018291.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!