# pass break continue 关键字 # pass 用来占位 # example1 # if True: # 如果这里什么都没有写 将会报错 # File "/Users/root/Desktop/# pass break continue example.py", line 5 # example2 if True: pass # 如果加上pass 将不会报错 # print(123) # example3 a = 0 while a < 10: pass a+=1 # example4 n = 0 while n < 100: n+=1 # print(n) if n >= 5: break # example5 n = 0; while n < 10: n+=1 if n % 2 == 1: continue print(n)
版权属于:
emer
文章声明:
本文版权内容属于《快乐小窝》转载请标明出处
评论一下?