Python-禅】的更多相关文章

Go for Pythonistas https://talks.golang.org/2013/go4python.slide#1 Things I don't like about Python (it'll be short) Beautiful and simple Dynamic typing - nice because it's concise, like Python. a = "hello" b = 1 # but also a = 2 Static typing -…
最近疯狂的学习ruby和python着两门语言,看到书本上一些比较赞同的段子,摘抄并翻译如下: Python的使用之禅 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.平坦好过嵌套Sp…
想要真正深入了解一门语言,需要用心去感受.下面是python之禅,python的设计哲学,对于编程很有指导意义.(翻译部分摘自网络,同时自己有一些更改) >>> 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 c…
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 a…
Python之禅 (The Zen of Python):是Python语言的指导原则,可以在Python命令行输入import this显示. import this >>> The Zen of Python, by Tim Peters Beautiful is better than ugly. # 优美胜于丑陋(Python以编写优美的代码为目标) Explicit is better than implicit. # 明了胜于晦涩(优美的代码应当是明了的,命名规范,风格相似)…
最近楼主加班 喽, 好久没有更新我的博客了,哎,一言难尽,废话我就不说了,来开始上精华. 背景:目前市面上有很多bug管理工具,但是各有各的特点,最著名,最流行的就是禅道,一个偶然的机会接触到了python ,学到tornado后,就想着去怎么去用到实处,后来发现自己公司的除了禅道就记录bug没有什么可以用的工具了. 语言:python3 第三库 :tornado,qiniu(用于云存储文件),数据库用sqlite why  use tornado?很多人其实会这么问我,我感觉tornado可以…
在python shell中敲 import this会触发一个彩蛋,神奇的打印下面一段话: The Zen of Python, 即python之禅, 1999年Tim Peters大牛总结的"武功心法": >>> import this The Zen of Python, by Tim Peters Beautiful is better than ugly. Explicit is better than implicit. Simple is better…
凡是用过 Python的人,基本上都知道在交互式解释器中输入 import this 就会显示 Tim Peters 的 The Zen of Python,但它那偈语般的语句有点令人费解,所以我想分享一下我对它的体会,顺带给出我的翻译. >>> import this The Zen of Python, by Tim Peters Beautiful is better than ugly. Explicit is better than implicit. Simple is be…
>>print import <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 is better than dense. Readability counts. Spec…