You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-[> Let's meet Friendly Language Uncle For Life/让生活更友好 *](#-lets-meet-friendly-language-uncle-for-life让生活更友好-)
74
74
-[> Even Python understands that love is complicated/连Python也知道爱是难言的 *](#-even-python-understands-that-love-is-complicated连Python也知道爱是难言的-)
75
-
-[> Yes, it exists!](#-yes-it-exists)
75
+
-[> Yes, it exists!/是的, 它存在!](#-yes-it-exists是的-它存在)
76
76
-[> Inpinity *](#-inpinity-)
77
77
-[> Mangling time! *](#-mangling-time-)
78
78
-[Section: Miscellaneous](#section-miscellaneous)
@@ -2073,9 +2073,9 @@ True
2073
2073
2074
2074
---
2075
2075
2076
-
### > Yes, it exists!
2076
+
### > Yes, it exists!/是的, 它存在!
2077
2077
2078
-
**The `else` clause for loops.** One typical example might be:
2078
+
**循环的 `else`.** 一个典型的例子:
2079
2079
2080
2080
```py
2081
2081
def does_exists_num(l, to_find):
@@ -2096,7 +2096,7 @@ Exists!
2096
2096
Does not exist
2097
2097
```
2098
2098
2099
-
**The `else` clause in exception handling.** An example,
2099
+
**异常的 `else` .** 例,
2100
2100
2101
2101
```py
2102
2102
try:
@@ -2112,9 +2112,9 @@ else:
2112
2112
Try block executed successfully...
2113
2113
```
2114
2114
2115
-
#### 💡 Explanation:
2116
-
- The `else` clause after a loop is executed only when there's no explicit `break` after all the iterations.
2117
-
- `else` clause after try block is also called "completion clause" as reaching the `else` clause in a `try` statement means that the try block actually completed successfully.
0 commit comments