还有很多不会翻译,或者翻译错误,请大家懂得的指正一下,谢谢
Beautiful is better than ugly.
魅力比丑陋更好
Explicit is better than implicit.
显式比隐式更好
Simple is better than complex.
简单比复杂更好
Flat is better than nested.
平滑比嵌套更好
Sparse is better than dense.
稀疏比稠密更好
Readablility counts.
可读性 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.
实现容易被解释是一个好注意
分享到:
相关推荐
Python之禅.py
06★Python3快速入门★Python之禅
Zen of Python(Python之禅)Beautiful is better than ugly. (优美比丑陋好)Explicit is better
如果你还没读过Python之禅(Zen of Python) ,那么打开Python的命令提示符输入import this,列表中的每一项你都可以在这里找到相对应的例子。 吸引我注意力的一条是: 优雅胜于丑陋 (Beautiful is better than ugly) ...
>>>import this The Zen of Python, by Tim Peters Beautiful is better than ugly. 优美胜于丑陋。(Python以编写优美的代码为目标)
下载ArduinoScratch即可查看,大家可以来看一下,我这个是用scratch写的。ArduinoScratch(AS-block)我发资源里了
Python 3.8.1 (tags/v3.8.1:1b293b6, Dec 18 2019, 22:39:24) [MSC v.1916 32 bit (In
用python做的2048小游戏,只要200行就可搞定。人生苦短,我用python
测试试读资源.zip测试试读资源.zip测试试读资源.zip测试试读资源.zip测试试读资源.zip测试试读资源.zip测试试读资源.zip测试试读资源.zip测试试读资源.zip测试试读资源.zip测试试读资源.zip测试试读资源.zip测试试读...
Python在开发之初,已经规范了代码的整体原则,那就是Python之禅。 在交互式解释器中输入import this就会显示 Tim Peters 的 “The Zen of Python” 当然,也可以在pycharm中: import this print() 放张高清大图...
Python 之禅(示例) 作者: 猎人空白 日期: 2013 年 6 月 15 日 我写的,并提出pep20_by_example.py在2011年RedSnake费城,费城Python和Ruby的用户群体之间的联合年会。 至少希望是可执行的 Python 的文本是非...
对于开发工程师而言,Python 的优雅和简洁无疑是最大的吸引力,在 Python 交互式 环境中,执行 import this,读一读 Python 之禅,你就明白 Python 为什么如此吸引人。 Python 社区一直非常有活力,和 NodeJS 社区...
print("Hello Python World!") Pyton编程从入门到实践 – 第02章 变量和简单数据类型 02 变量 – 5 02 变量 Hello_world.py message = "Hello Python World!" print(message) 02-1 变量的命名和使用 • 变量名...
Python适用于作为教学语言,因为纵观它的历史,Python的开发者强调了Python代码对人类的解释性,并在Python之禅中美观、简约和可读的原则下进一步加强。Python尤其适用于课堂,因为它宽泛的特性支持大量的不同编程...
一、温度转换、蟒蛇绘制;二、天天向上的力量、文本进度条;三、七段数码管的绘制;四、文本词频统计、Python之禅;附带有实验代码和分析
Python之禅.md README.md 更新日志.md 玩转PyCharm.md Day01-15\01.初识Python.md Day01-15\02.语言元素.md Day01-15\03.分支结构.md Day01-15\04.循环结构.md Day01-15\05.构造程序逻辑.md Day01-15\06.函数和模块...
Python之禅(import this)是什么? 这题是考察你对编码规范的认识,无论是自己写代码还是在团队中写代码,了解并遵循代码规范是很基础的要求。企业中在提交代码后都会有对应的工具来对代码进行检查,比如 pep8、...
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 ...
你也可以看看Zen of Python(Python之禅),这里面提到了一些注意事项,并配以示例,可以帮助你快速提高。 1. 漂亮胜于丑陋 实现一个功能:读取一列数据,只返回偶数并除以2。下面的代码,哪个更好一些呢?复制代码 ...