我刚刚在python中挖掘了一些很酷的模块,这个antigravity模块看起来很酷,充满了潜力,但我不确定它是不是听起来像这样。
除了在浏览器上显示漫画页面之外,它还有其他用途吗?如果有,请告诉我它可以用来做什么。有没有一个例子?请注意,在下面的链接中,当这个家伙问“你飞得怎么样?”时,巨蟒的家伙回答说:“我只是输入了导入反重力。”
我想知道是否真的有一种方法可以通过导入反重力来让东西飞起来,也许是在Pygame或其他跨平台模块中。
这就是link...
import antigravity
def main():
antigravity.fly()
if __name__=='__main__':
main()发布于 2015-12-26 23:56:55
不,它只是一个easter egg。This brief blog post有更多细节。
发布于 2020-05-29 01:39:03
这是个easter egg。这里还有一些,祝你玩得开心!
>>> 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!>>> from __future__ import braces
SyntaxError: not a chancehttps://stackoverflow.com/questions/34472872
复制相似问题