Pythin print a for loop
Sure, here's an example of a for loop in Python that prints the first 10 positive integers:
for i in range(1, 11):
print(i)
Output:
1
2
3
4
5
6
7
8
9
10
原文地址: https://www.cveoy.top/t/topic/sBK 著作权归作者所有。请勿转载和采集!
安全问答是一个知识全球问答,包含丰富的问答知识
Sure, here's an example of a for loop in Python that prints the first 10 positive integers:
for i in range(1, 11):
print(i)
Output:
1
2
3
4
5
6
7
8
9
10
原文地址: https://www.cveoy.top/t/topic/sBK 著作权归作者所有。请勿转载和采集!