Skip to content

Commit eca31f7

Browse files
author
ducheng
committed
EX.Yes, it exists
1 parent 90383b2 commit eca31f7

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)
@@ -2068,9 +2068,9 @@ True
20682068
20692069
---
20702070
2071-
### > Yes, it exists!
2071+
### > Yes, it exists!/是的, 它存在!
20722072
2073-
**The `else` clause for loops.** One typical example might be:
2073+
**循环的 `else`.** 一个典型的例子:
20742074
20752075
```py
20762076
def does_exists_num(l, to_find):
@@ -2091,7 +2091,7 @@ Exists!
20912091
Does not exist
20922092
```
20932093
2094-
**The `else` clause in exception handling.** An example,
2094+
**异常的 `else` .** ,
20952095
20962096
```py
20972097
try:
@@ -2107,9 +2107,9 @@ else:
21072107
Try block executed successfully...
21082108
```
21092109
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.
2110+
#### 💡 说明:
2111+
- 循环后的 `else` 子句只会在循环没有触发 `break` 语句, 正常结束的情况下才会执行.
2112+
- try 之后的 `else` 子句也被称为 "完成子句", 因为在 `try` 语句中到达 `else` 子句意味着try块实际上已成功完成.
21132113
21142114
---
21152115

0 commit comments

Comments
 (0)