python——continue的应用
while True: print('who are you?') name=input() if name !='student': continue print('hello ' + name) print('请形容一下他,如,niu') r=input() if r=='niu': break print('么么哒')
continue:
跳出当前循环并返回到上一层执行代码,
while True: print('who are you?') name=input() if name !='student': continue print('hello ' + name) print('请形容一下他,如,niu') r=input() if r=='niu': break print('么么哒')
continue:
跳出当前循环并返回到上一层执行代码,