1.continue,break语句:
userArray=['张三','李四','王五','老六'] for name in userArray: if(name=='王五'): continue print(name+'报到') count = 0 while(count<30): count +=1 print('这是第'+str(count)+'个苹果') if(count==10): print('已经拿够十个苹果,结束!') break