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)
@@ -2068,9 +2068,9 @@ True
2068
2068
2069
2069
---
2070
2070
2071
-
### > Yes, it exists!
2071
+
### > Yes, it exists!/是的, 它存在!
2072
2072
2073
-
**The `else` clause for loops.** One typical example might be:
2073
+
**循环的 `else`.** 一个典型的例子:
2074
2074
2075
2075
```py
2076
2076
def does_exists_num(l, to_find):
@@ -2091,7 +2091,7 @@ Exists!
2091
2091
Does not exist
2092
2092
```
2093
2093
2094
-
**The `else` clause in exception handling.** An example,
2094
+
**异常的 `else` .** 例,
2095
2095
2096
2096
```py
2097
2097
try:
@@ -2107,9 +2107,9 @@ else:
2107
2107
Try block executed successfully...
2108
2108
```
2109
2109
2110
-
#### 💡 Explanation:
2111
-
- The `else` clause after a loop is executed only when there's no explicit `break` after all the iterations.
2112
-
- `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