python输出1-10
可以使用for循环来输出1-10:
for i in range(1, 11):
print(i)
也可以使用while循环来输出1-10:
i = 1
while i <= 10:
print(i)
i += 1
原文地址: https://www.cveoy.top/t/topic/dEzm 著作权归作者所有。请勿转载和采集!
安全问答是一个知识全球问答,包含丰富的问答知识
可以使用for循环来输出1-10:
for i in range(1, 11):
print(i)
也可以使用while循环来输出1-10:
i = 1
while i <= 10:
print(i)
i += 1
原文地址: https://www.cveoy.top/t/topic/dEzm 著作权归作者所有。请勿转载和采集!