标签:inpu for循环 continue range break 结束 bre print 循环
Author:HU YUE#break结束整个循环,退出循环
#continue跳出本次循环
for i in range(10):
print(i)
for j in range(10):
print(j)
if j>5:
break
s=input("输入:")
i=5
for j in range (0,10,1):
if i==j:
print("i等于j了", i, j)
continue
else:
print("i不等于j",i,j)
标签:inpu for循环 continue range break 结束 bre print 循环
原文地址:http://blog.51cto.com/12992048/2172799