python while死循环

#死循环:表达式永远为真的循环

while 2:
print("sunck is a good man")
while True:
print("sunck is a good man")

#不执行非循环 False
while False:
    print("sunck is a good man")
posted @ 2020-01-14 20:39  i勤能补拙  阅读(7410)  评论(0编辑  收藏  举报