number = [1,2,3]
for i in number:
if i==2:
pass
print(i)
D:\python\python.exe D:\pycharm\joy_test_repo\test\test.py
1
2
3
number = [1,2,3]
for i in number:
if i==2:
continue
print(i)
D:\python\python.exe D:\pycharm\joy_test_repo\test\test.py
1
3
Process finished with exit code 0
number = [1,2,3]
for i in number:
if i==2:
break
print(i)
D:\python\python.exe D:\pycharm\joy_test_repo\test\test.py
1
Process finished with exit code 0