Skip to content

Commit f951984

Browse files
暮晨ducheng
暮晨
authored and
ducheng
committed
EX.Okay Python, Can you make me fly
1 parent 29c6650 commit f951984

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ So, here we go...
6767
- [> Name resolution ignoring class scope/忽略类作用域的名称解析](#-name-resolution-ignoring-class-scope忽略类作用域的名称解析)
6868
- [> Needle in a Haystack/大海捞针](#-needle-in-a-haystack大海捞针)
6969
- [Section: The Hidden treasures!](#section-the-hidden-treasures)
70-
- [> Okay Python, Can you make me fly? *](#-okay-python-can-you-make-me-fly-)
70+
- [> Okay Python, Can you make me fly?/Python, 可否带我飞? *](#-okay-python-can-you-make-me-flypython-可否带我飞-)
7171
- [> `goto`, but why? *](#-goto-but-why-)
7272
- [> Brace yourself! *](#-brace-yourself-)
7373
- [> Let's meet Friendly Language Uncle For Life *](#-lets-meet-friendly-language-uncle-for-life-)
@@ -1897,21 +1897,21 @@ tuple()
18971897
18981898
This section contains few of the lesser-known interesting things about Python that most beginners like me are unaware of (well, not anymore).
18991899
1900-
### > Okay Python, Can you make me fly? *
1900+
### > Okay Python, Can you make me fly?/Python, 可否带我飞? *
19011901
1902-
Well, here you go
1902+
好, 去吧.
19031903
19041904
```py
19051905
import antigravity
19061906
```
19071907
19081908
**Output:**
1909-
Sshh.. It's a super secret.
1909+
.. 这是个超级秘密.
19101910
1911-
#### 💡 Explanation:
1912-
+ `antigravity` module is one of the few easter eggs released by Python developers.
1913-
+ `import antigravity` opens up a web browser pointing to the [classic XKCD comic](http://xkcd.com/353/) about Python.
1914-
+ Well, there's more to it. There's **another easter egg inside the easter egg**. If you look at the [code](https://github.com/python/cpython/blob/master/Lib/antigravity.py#L7-L17), there's a function defined that purports to implement the [XKCD's geohashing algorithm](https://xkcd.com/426/).
1911+
#### 💡 说明:
1912+
+ `antigravity` 模块是 Python 开发人员发布的少数复活节彩蛋之一.
1913+
+ `import antigravity` 会打开一个 Python 的[经典 XKCD 漫画](http://xkcd.com/353/)页面.
1914+
+ 不止如此. 这个**复活节彩蛋里还有一个复活节彩蛋**. 如果你看一下[代码](https://github.com/python/cpython/blob/master/Lib/antigravity.py#L7-L17), 就会发现还有一个函数实现了 [XKCD's geohashing 算法](https://xkcd.com/426/).
19151915
19161916
---
19171917

0 commit comments

Comments
 (0)