打印时间的while循环:
import time
count = 0 #初始化
while count<10:
print(time.time())
count += 1
输出:
1542903221.701873
1542903221.701873
1542903221.701873
1542903221.701873
1542903221.701873
1542903221.701873
1542903221.701873
1542903221.701873
1542903221.701873
1542903221.701873
while…
continue 终止当前循环进行下一次循环
break 终止所有循环