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
Copy file name to clipboardExpand all lines: README.md
+8-8Lines changed: 8 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -67,7 +67,7 @@ So, here we go...
67
67
-[> Name resolution ignoring class scope/忽略类作用域的名称解析](#-name-resolution-ignoring-class-scope忽略类作用域的名称解析)
68
68
-[> Needle in a Haystack/大海捞针](#-needle-in-a-haystack大海捞针)
69
69
-[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-可否带我飞-)
71
71
-[> `goto`, but why? *](#-goto-but-why-)
72
72
-[> Brace yourself! *](#-brace-yourself-)
73
73
-[> Let's meet Friendly Language Uncle For Life *](#-lets-meet-friendly-language-uncle-for-life-)
@@ -1897,21 +1897,21 @@ tuple()
1897
1897
1898
1898
This section contains few of the lesser-known interesting things about Python that most beginners like me are unaware of (well, not anymore).
1899
1899
1900
-
### > Okay Python, Can you make me fly? *
1900
+
### > Okay Python, Can you make me fly?/Python, 可否带我飞? *
1901
1901
1902
-
Well, here you go
1902
+
好, 去吧.
1903
1903
1904
1904
```py
1905
1905
import antigravity
1906
1906
```
1907
1907
1908
1908
**Output:**
1909
-
Sshh.. It's a super secret.
1909
+
嘘.. 这是个超级秘密.
1910
1910
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/).
0 commit comments