Skip to content

Commit a4f00ef

Browse files
duchengleisurelicht
ducheng
authored andcommitted
EX.Yes, it exists
1 parent 37b5ac3 commit a4f00ef

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ So, here we go...
7272
- [> Brace yourself!/做好思想准备 *](#-brace-yourself做好思想准备-)
7373
- [> Let's meet Friendly Language Uncle For Life/让生活更友好 *](#-lets-meet-friendly-language-uncle-for-life让生活更友好-)
7474
- [> 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是的-它存在)
7676
- [> Inpinity *](#-inpinity-)
7777
- [> Mangling time! *](#-mangling-time-)
7878
- [Section: Miscellaneous](#section-miscellaneous)
@@ -2073,9 +2073,9 @@ True
20732073
20742074
---
20752075
2076-
### > Yes, it exists!
2076+
### > Yes, it exists!/是的, 它存在!
20772077
2078-
**The `else` clause for loops.** One typical example might be:
2078+
**循环的 `else`.** 一个典型的例子:
20792079
20802080
```py
20812081
def does_exists_num(l, to_find):
@@ -2096,7 +2096,7 @@ Exists!
20962096
Does not exist
20972097
```
20982098
2099-
**The `else` clause in exception handling.** An example,
2099+
**异常的 `else` .** ,
21002100
21012101
```py
21022102
try:
@@ -2112,9 +2112,9 @@ else:
21122112
Try block executed successfully...
21132113
```
21142114
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.
2115+
#### 💡 说明:
2116+
- 循环后的 `else` 子句只会在循环没有触发 `break` 语句, 正常结束的情况下才会执行.
2117+
- try 之后的 `else` 子句也被称为 "完成子句", 因为在 `try` 语句中到达 `else` 子句意味着try块实际上已成功完成.
21182118
21192119
---
21202120

0 commit comments

Comments
 (0)