首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >python反重力模块的用途

python反重力模块的用途
EN

Stack Overflow用户
提问于 2015-12-26 23:53:38
回答 2查看 48.1K关注 0票数 44

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

除了在浏览器上显示漫画页面之外,它还有其他用途吗?如果有,请告诉我它可以用来做什么。有没有一个例子?请注意,在下面的链接中,当这个家伙问“你飞得怎么样?”时,巨蟒的家伙回答说:“我只是输入了导入反重力。”

我想知道是否真的有一种方法可以通过导入反重力来让东西飞起来,也许是在Pygame或其他跨平台模块中。

这就是link...

代码语言:javascript
复制
import antigravity
def main():
    antigravity.fly()
if __name__=='__main__':
    main()
EN

回答 2

Stack Overflow用户

回答已采纳

发布于 2015-12-26 23:56:55

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

票数 42
EN

Stack Overflow用户

发布于 2020-05-29 01:39:03

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

代码语言:javascript
复制
>>> 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!
代码语言:javascript
复制
>>> import __hello__
Hello world!
代码语言:javascript
复制
>>> from __future__ import braces
SyntaxError: not a chance
票数 16
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/34472872

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档