count = 0while count <=5: count += 1 if count == 3:pass print("Loop".count)else: print("循环正常执行完啦")print("-------out of while loop ------")
while else ,pass执行else,break不执行else
原文:https://www.cnblogs.com/python-test001/p/11211816.html