Skip to content

Commit a45c145

Browse files
ducheng暮晨
ducheng
authored and
暮晨
committed
EX.Inpinity
1 parent 2a53064 commit a45c145

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

README.md

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ So, here we go...
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也知道爱是难言的-)
7575
- [> Yes, it exists!/是的, 它存在!](#-yes-it-exists是的-它存在)
76-
- [> Inpinity *](#-inpinity-)
76+
- [> Inpinity/无限 *](#-inpinity无限-)
7777
- [> Mangling time! *](#-mangling-time-)
7878
- [Section: Miscellaneous](#section-miscellaneous)
7979
- [> `+=` is faster](#--is-faster)
@@ -2063,7 +2063,7 @@ True
20632063
20642064
* `this` 模块是关于 Python 之禅的复活节彩蛋 ([PEP 20](https://www.python.org/dev/peps/pep-0020)).
20652065
* 如果你认为这已经够有趣的了, 可以看看 [this.py](https://hg.python.org/cpython/file/c3896275c0f6/Lib/this.py) 的实现. 有趣的是, Python 之禅的实现代码违反了他自己 (这可能是唯一会发生这种情况的地方).
2066-
*
2066+
*
20672067
至于 `love is not True or False; love is love`, 意外却又不言而喻.
20682068
20692069
---
@@ -2113,9 +2113,10 @@ Try block executed successfully...
21132113
21142114
---
21152115
2116-
### > Inpinity *
2116+
### > Inpinity/无限 *
21172117
2118-
The spelling is intended. Please, don't submit a patch for this.
2118+
英文拼写是有意的, 请不要为此提交补丁.
2119+
(译: 这里是为了突出 Python 中无限的定义与[Pi](https://en.wikipedia.org/wiki/Pi)有关, 所以将两个单词拼接了.)
21192120
21202121
**Output (Python 3.x):**
21212122
```py
@@ -2126,9 +2127,9 @@ The spelling is intended. Please, don't submit a patch for this.
21262127
-314159
21272128
```
21282129
2129-
#### 💡 Explanation:
2130-
- Hash of infinity is 10⁵ x π.
2131-
- Interestingly, the hash of `float('-inf')` is "-10⁵ x π" in Python 3, whereas "-10⁵ x e" in Python 2.
2130+
#### 💡 说明:
2131+
- infinity 的哈希值是 10⁵ x π.
2132+
- 有意思的是, `float('-inf')` 的哈希值在 Python 3 中是 "-10⁵ x π" , 而在 Python 2 中是 "-10⁵ x e".
21322133
21332134
---
21342135

0 commit comments

Comments
 (0)