Last active
April 9, 2020 10:19
-
-
Save Celia-code/243261c78597b78c7883590489af46d8 to your computer and use it in GitHub Desktop.
break&continue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for i in range(11): | |
if i == 7: | |
continue | |
print(i) # 打印出1~6, 8~10, 中間省略7 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment