在python中import this,就能看到the zen of python,好好领悟吧

The Zen of Python, by Tim Peters

Python之道 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.2

疑窦丛生,拒绝猜测

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 zen_The Zen of Python相关推荐

  1. 禅意Python - The Zen of Python

    Beautiful is better than ugly. 要写更美的代码. Explicit is better than implicit. 要直截了当地表达,不要含蓄. Simple is b ...

  2. python必背内容-python必背函数

    广告关闭 2017年12月,云+社区对外发布,从最开始的技术博客到现在拥有多个社区产品.未来,我们一起乘风破浪,创造无限可能. 今天给大家分享一些学习python必须认识的英文单词,同时也是学习编程都 ...

  3. python zen_Python的宗旨(Zen of Python)

    我们在Python中导入this模块,会打印出一段字符串: import this 翻译对照如下: The Zen of Python, by Tim Peters Python的宗旨,Tim Pet ...

  4. PEP 20 -- The Zen of Python(Python之禅)

    也许大家都听说过"Python之禅",它是由Python的核心开发成员之一Tim Peter写,成为Python编程和设计的指导原则. 也许大家还知道在python解释器中输入im ...

  5. The Zen of Python, by Tim Peters

    刚开始用python的时候在书上看到了,今天忽然看到一位博友的博文,又找出来了,我一直把其中的一些思想放到我的其他语言中,算是盲目的膜拜与颤栗的摸索. The Zen of Python, by Ti ...

  6. The Zen of Python

    zen 即禅之意 可以在python的命名行交互模式下以下的语句就能看到: import this The Zen of Python, by Tim PetersBeautiful is bette ...

  7. zen of python什么意思_如何理解「The Zen of Python」?

    import this The Zen of Python, by Tim Peters Python之禅 ,by Tim Peters Beautiful is better than ugly. ...

  8. python的设计哲学是什么意思_Python彩蛋:哲学理念及设计思想(The Zen of Python, by Tim Peters)...

    为了更好的了解Python哲学理念及设计思想,可以在任何一个Python交互解释器中输入import this命令.就会出现Python的一个彩蛋,描述了一系列Python的设计原则,阅读一下这些文字 ...

  9. zen of python什么意思_Zen of Python

    都知道Zen of Python, 这里还是重复一下.由于这篇东西还真是在vim中写的,可以利用vim的能力,在vim的命令模式下输入: :read !echo import this | pytho ...

  10. 《The Zen of Python, Explained》Posted by Al Sweigart in python - 中译版

    对Python之禅的解释 由 Al Sweigart 发布 Tim Peters 所著的 Python之禅 是20条关于 Python 语言设计的指导.你的 Python 代码不必要一定遵循这些指导, ...

最新文章

  1. ElasticSearch优化系列三:机器设置(内存)
  2. 大佬为何可以把单片机描述得如此形象生动?
  3. MFC中的几个常用类——CFileDialog
  4. cortex系列处理器排行_ARM实时处理器Cortex-R8介绍_Cortex-R系列处理器盘点
  5. VB.net SP1 的兼容性问题
  6. jQuery height()、innerHeight()、outerHeight()函数的区别详解
  7. adb工具箱_安卓福音,史上最强搞机工具箱,一键修手机
  8. ai疾病风险因素识别_克服AI的“蠕动因素”
  9. 交通标志识别系统(TSR)
  10. 一篇小文入门 Python
  11. Word Maze(单词迷宫)
  12. VSCode调试C/C++项目
  13. clCreateBuffer的7种方式的异同、MapBuffer与clCreateBuffer某些方式的区别与联系
  14. 在win上下载安装CTex及其注意事项
  15. 基于VRML的虚拟校园漫游系统源代码
  16. hexo 添加图片,音乐,链接,视频
  17. Qt实现半透明、无边框、可自由移动、不规则的窗体
  18. 复制conda env环境:/home/×××/bin/python 没有解析器的问题
  19. AutoCAD功能区栏消失或者变成简要版了——亲测解决
  20. 8-5以下面四个标签(读写器范围内)为例说明二进制树型搜索算法选择电子标签迭带过程

热门文章

  1. 解决UE4官方文档C++API查询慢问题
  2. PCB集成元件封装库下载推荐
  3. docker ssh连接
  4. 数据库系统概论(第5版)
  5. 计算机设备运输规范,《电子计算机机房设计规范》GB50174-93
  6. 密码字典生成工具汇总
  7. word2007导出pdf带书签
  8. Linux命令详解词典高频命令(2)
  9. 基于Socket网络编程
  10. 计算机控制技术课程设计温度控制系统,计算机控制技术课程设计PWM温度自动控制系统的设计...