Python for Loop Example: Counting from 1 to 5
This Python code uses a 'for' loop to iterate through a range of numbers from 1 to 5 (exclusive). The loop prints each number in the range:
for i in range(1, 6):
print(i)
Output: 1 2 3 4 5
原文地址: http://www.cveoy.top/t/topic/mJFL 著作权归作者所有。请勿转载和采集!