Python_continue_break statement

1.continue, break statement:

= userArray [ ' John Doe ' , ' John Doe ' , ' Wang Wu ' , ' number six ' ] 

for name in userArray:
     IF (name == ' Wang Wu ' ):
         Continue 
    Print (name + ' Registration ' ) 


COUNT = 0 

the while (COUNT <30 ): 
    COUNT + =. 1
     Print ( " it is the first ' + STR (COUNT) + ' apple ')
     IF (COUNT == 10 ):
         Print ( ' ! Enough already get ten apples, end ' )
         BREAK

 

Guess you like

Origin www.cnblogs.com/myfy/p/11458995.html