while

>>> i = 0
>>> while i < 10:
print(i)
i = i + 1
 
 
0
1
2
3
4
5
6
7
8
9
原文地址:https://www.cnblogs.com/john2017/p/6371654.html