`
poson
  • 浏览: 349381 次
  • 性别: Icon_minigender_1
  • 来自: 杭州
社区版块
存档分类
最新评论

The Zen of Python, by Tim Peters 【zz】

阅读更多

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!
分享到:
评论

相关推荐

    python之禅.docx

    >>>import this The Zen of Python, by Tim Peters Beautiful is better than ugly. 优美胜于丑陋。(Python以编写优美的代码为目标)

    ImagesBy360.zip

    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. ...

    单元测试框架.txt

    The Zen of Python 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 ...

    [详细完整版]PYTHON.doc

    关于PYTHON的调查 08级师范班 张世杰 1272408046 一、关于python的含义 Python,是...这在由Tim Peters写的python格言(称为The Zen of Python)里面表述为:There should be one-- and preferably only one --obvious

    用pthon实现贪吃蛇.zip

    这在由Tim Peters写的Python格言(称为The Zen of Python)里面表述为:There should be one-- and preferably only one --obvious way to do it. 这正好和Perl语言(另一种功能类似的高级动态语言)的中心思想...

    python基础教程pdf(1).docx

    这在由Tim Peters写的Python格言(称为The Zen of Python)里面表述为:There should be one-- and preferably only one --obvious way to do it. 这正好和Perl语言(另一种功能类似的高级动态语言)的中心思想...

    nodebook:节点笔记本(实验)

    经典笔记本格式{ cells : [ { cell_type : "code" , source : "import this" outputs : [ { output_type : "stream" data : "The Zen of Python, by Tim Peters" } ] } , { cell_type : "markdown" , source : "# My...

    OReilly - Python Cookbook [miex.org]

    This book is a treasure trove of useful code for both novices and advanced practitioners, with contributions from such Python luminaries as Guido Van Rossum, Tim Peters, Paul Prescod, and Mark ...

    tr命令在统计英文单词出现频率中的妙用

    tr命令我们很清楚,可以删除替换,删除...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 complicat

    Python之禅&编码规范&一键排版

    首先,各个编程语言都有自己的代码规范,统一...在交互式解释器中输入import this就会显示 Tim Peters 的 “The Zen of Python” 当然,也可以在pycharm中: import this print() 放张高清大图: 整体意思就是Python

    leetcode中国-programming-coding-practice:编码练习

    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 ...

    holbertonschool-higher_level_programming:Python

    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 ...

    几种实用的pythonic语法实例代码

    关于 pythonic,你可以在终端打开 python,然后输入 import this,看看输出什么,这就是 Tim Peters 的 《The Zen of Python》,这首充满诗意的诗篇里概况了 python 的设计哲学,而这些思想,其实在所有语言也基本上...

    Python Cookbook

    The Python Cookbook is a collection of problems, solutions, and practical examples for Python programmers, written by Python programmers. It contains over two hundred recipes for text manipulation, ...

    Designing.the.User.Experience.of.Game.Development.Tools

    Title: Designing the User Experience of Game Development Tools Author: David Lightbown Length: 188 pages Edition: 1 Language: English Publisher: A K Peters/CRC Press Publication Date: 2015-02-18 ISBN-...

    [iPhone开发书籍大全].iPhone.User.Interface.Design.Projects(Apress.2009-11).pdf

    Eddie Wilson, an interactive designer, reveals the fine balance of excellent design and trial-by-fire programming used to create his successful app Snow Report Combined with Apress’ best-selling ...

    GPU Pro 7 (2016)

    The work of Wessam Bahnassi, Sebastien St-Laurent, Carsten Dachsbacher, and Christopher Oat ensured that the quality of the series meets the expectations of our readers. The great cover screenshots ...

    GPU Pro 3 (2012)

    The work of Wessam Bahnassi, Sebastien St-Laurent, Carsten Dachsbacher, and Christopher Oat ensured that the quality of the series meets the expectations of our readers. The great cover screenshots ...

    GPU Pro 5 (2014)

    The work of Wessam Bahnassi, Sebastien St-Laurent, Carsten Dachsbacher, and Christopher Oat ensured that the quality of the series meets the expectations of our readers. The great cover screenshots ...

    欧拉公式求圆周率的matlab代码-python_challenges:python_challenges

    提姆·彼得斯(Tim Peters)撰写的《 Python的禅宗》 美丽胜于丑陋。 显式胜于隐式。 简单胜于复杂。 复杂胜于复杂。 扁平比嵌套更好。 稀疏胜于密实。 可读性很重要。 特殊情况还不足以打破规则。 尽管实用性胜过...

Global site tag (gtag.js) - Google Analytics