num = 335
for i in range(num):
if i < 10:
i = “00%d” % i
elif i < 100:
i = “0%d” % i
else:
i = str(i)
把0.1.2变成3位数
最新推荐文章于 2024-04-13 23:07:09 发布
num = 335
for i in range(num):
if i < 10:
i = “00%d” % i
elif i < 100:
i = “0%d” % i
else:
i = str(i)