1. Input while loop 123456 ... 8910

1 #1.使用while循环输入1 2 3 4 5 6 ... 8 9 10
2 count = 0
3 while count < 10:
4     count += 1 # count = count + 1
5     if count == 7:
6         print(" ")
7     else:
8         print(count)

 

Guess you like

Origin www.cnblogs.com/chaxiaoming/p/12327595.html