#break表示退出本层循环
while Ture:
print(123)
break
print(456)
#continue表示退出本次循环,继续下一次循环
while Ture:
print ‘123‘
continue
print‘456‘
标签:退出 gpo bre blog div 循环 break continue while
#break表示退出本层循环
while Ture:
print(123)
break
print(456)
#continue表示退出本次循环,继续下一次循环
while Ture:
print ‘123‘
continue
print‘456‘
标签:退出 gpo bre blog div 循环 break continue while
原文地址:http://www.cnblogs.com/python654/p/8027182.html