1.遇到执行continue 时,即跳回到while开头,再次执行循环语句。
i=1
while i<10:
i=i+1
if i%2>0:
continue
print(i)
可复制到清华毕神的在线测试:http://pythontutor.makerbean.com/#mode=display
i=1
while i<10:
i=i+1
if i%2>0:
continue
print(i)
可复制到清华毕神的在线测试:http://pythontutor.makerbean.com/#mode=display