1.死循环
while 1==1:
print("ok")
另一个例子
import time
print("ok",time.time())
count = 0
while count<10
count=count+1
print("ok",time.time())")
print(123)
Python学习笔记(七)Python循环语句
原文:https://www.cnblogs.com/zengtaoyunwei/p/10371618.html