刚开始用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.
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!

转载于:https://www.cnblogs.com/liuqxFuture/archive/2012/10/20/2732298.html

The Zen of Python, by Tim Peters相关推荐

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

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

  2. 【The Zen of Python, by Tim Peters. Python之禅】

    The Zen of Python, by Tim Peters. Python之禅 解决问题的办法有多个 Kali Linux的Python 3.9版本 算是自己理解+写给自己的一些话吧 持久的目标 ...

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

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

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

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

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

  6. python zen_Python彩蛋--zen of python

    今天早上在公交上浏览博客的时候,发现了python里面的一个小彩蛋--zen of python 一首python之歌 我们来看一看... ​ 是不是很简单,在python shell 里 输入 im ...

  7. Python的import this 惊喜彩蛋:Python之禅(The Zen of Python)

    文章目录 Python的import this 惊喜彩蛋:Python之禅(The Zen of Python) import this The Zone Of Python My favorite ...

  8. The Zen of Python / Python之禅

    在python中import this就会展示出The Zen of Python如下: The Zen of Python, by Tim Peters Beautiful is better th ...

  9. PEP 20 – The Zen of Python

    PEP 20 – The Zen of Python Python之禅 原文地址:https://www.python.org/dev/peps/pep-0020/ PEP: 20 Title: Th ...

最新文章

  1. 使用ROW_NUMBER 和partition by 解决报表中的查询问题
  2. Linux内核--网络协议栈深入分析(一)--与sk_buff有关的几个重要的数据结构
  3. ProtonMail 开源其所有电子邮件应用程序
  4. python编程在哪里写程序-第一个Python程序——在屏幕上输出文本
  5. Python 字符串操作(string替换、删除、截取、复制、连接、比较、查找、包含、大小写转换、分割等)
  6. DropDownList实现无限分级
  7. python 面试题(3)--- 进制转换
  8. 极简版ASP.NET Core学习路径及教程
  9. JavaWeb项目启动时,tomcat会启动两次的原因(之一)和解决方案
  10. 批量图片处理,打包成zip
  11. 第一周 7.10-7.16
  12. mysql存储过程详解以及PHP调用MYSQL存储过程实例
  13. 全流程基于最新导则下的生态环境影响评价技术方法及图件制作
  14. java 线程面试题_8道Java多线程面试题,看过后你不会后悔!
  15. Java开源CMS系统
  16. 关于快速幂与快速积取模实现的尝试
  17. chrome 恐龙 html源码,Chrome 小恐龙游戏源码探究二 -- 让地面动起来
  18. 基于OpenCV实现视频的循环播放
  19. Linux初级入门百篇--lsof工具
  20. 用好这些小工具,基金可以更赚钱

热门文章

  1. 【SpringBoot】【Thyemeleaf 】【Spring EL表达式】 SPEL调用静态类、静态方法
  2. Linux RedHat7.0 上vsftp配置
  3. 猴子选王c语言链表程序代码,C语言程序设计-猴子选大王[链表应用]
  4. gpio 树莓派3a+_树莓派4正式发布!硬件性能大提升:CPU提升3倍,支持USB3.0、蓝牙5.0、千兆以太网、4G LPDDR4、H.265...
  5. hive mysql hdfs关系_Hive中的数据库、表、数据与HDFS的对应关系
  6. 水凝胶 静电纺丝_北理工赵扬ACS Nano:在水凝胶纺织软体机器人方面取得进展
  7. async function_理解 Iterator, Generator 和 Async/Await
  8. Windows Nginx 反向代理 Microsoft SQL Server (MSSQL)
  9. 开发商微信选房后不退认筹金_网曝!青岛恒大文化旅游城1400余名购房者欲退认筹金,开发商表示.........
  10. c语言 char转int_图文并茂,一文讲透C语言结构体内存对齐