Python_Break和Countinue

Break and Continue

i = 0            
while True:      
    i += 1       
    if i <= 100: 
        continue 
    print(i)     
    if i == 105: 
        break  
101
102
103
104
105

Process finished with exit code 0

posted @ 2019-10-16 16:45  htr0215  阅读(178)  评论(0)    收藏  举报