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

>>>


©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容

  • 前言 编程语言 Perl 曾在互联网领域长期占据着统治地位,早期的大多数交互式网站使用的都是 Perl 脚本。那是...
    你偷了我的小鱼干阅读 460评论 0 1
  • 本文转载自知乎 作者:季子乌 笔记版权归笔记作者所有 其中英文语句取自:英语流利说-懂你英语 ——————————...
    Danny_Edward阅读 43,951评论 4 38
  • The Zen of Python, by Tim Peters Beautiful is better than...
    117df14b2449阅读 1,180评论 0 0
  • getchar():字符输入函数 作用:从终端(或系统隐含指定的输入设备)输入一个字符。此函数没有参数 putch...
    天涯_DHY阅读 549评论 0 0
  • 我对你付出的青春这么多年 换来了一句 谢谢你的成全 最近天天循环这首歌,刘若英的歌总是能唱进人的心里,甜甜的声调,...
    啤酒肚豆豆阅读 514评论 1 1