python反重力模块的目的

时间:2015-12-26 15:53:38

标签: python import python-antigravity

我只是在python中挖掘了一些很酷的模块,这个antigravity模块看起来很酷,充满了潜力,但我不确定它是不是听起来像。

除了在浏览器上显示漫画页面之外,它有用吗?如果有,请告诉它可以用于什么。有一个例子吗?请注意,在链接的下方,当那个人问“但你怎么飞?”时,蟒蛇老兄回答说:“我只是键入了导入反重力。”

我想知道是否真的有办法通过导入反重力来实现飞行,可能是在Pygame或其他跨平台模块中。

这是链接...

import antigravity
def main():
    antigravity.fly()
if __name__=='__main__':
    main()

2 个答案:

答案 0 :(得分:19)

不,它只是easter eggThis brief blog post有更多细节。

答案 1 :(得分:6)

这是easter egg。这里还有一些,玩得开心!

filename6.pdf
>>> import this
The Zen of Python, by Tim Peters

Beautiful is better than ugly.
Explicit is better than implicit.
Simple is better than complex.
Complex is better than complicated.
Flat is better than nested.
Sparse is better than dense.
Readability counts.
Special cases aren't special enough to break the rules.
Although practicality beats purity.
Errors should never pass silently.
Unless explicitly silenced.
In the face of ambiguity, refuse the temptation to guess.
There should be one-- and preferably only one --obvious way to do it.
Although that way may not be obvious at first unless you're Dutch.
Now is better than never.
Although never is often better than *right* now.
If the implementation is hard to explain, it's a bad idea.
If the implementation is easy to explain, it may be a good idea.
Namespaces are one honking great idea -- let's do more of those!
>>> import __hello__
Hello world!