安云网 - AnYun.ORG | 专注于网络信息收集、网络数据分享、网络安全研究、网络各种猎奇八卦。
当前位置: 安云网 > 技术关注 > 编程茶楼 > Python > python之禅

python之禅

时间:2016-05-04来源:未知 作者:安云网点击:
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

The Zen of Python, by Tim Peters


Beautiful is better than ugly.

//ANYUN.ORG

Explicit is better than implicit.

//安云网,anyun.org

Simple is better than complex.

//ANYUN.ORG

Complex is better than complicated. //copyright AnYun.ORG

Flat is better than nested. //copyright AnYun.ORG

Sparse is better than dense.

//内容来自AnYun.ORG

Readability counts.

//安云网咨询系统

Special cases aren't special enough to break the rules.

//内容来自AnYun.ORG

Although practicality beats purity. //copyright AnYun.ORG

Errors should never pass silently. //ANYUN.ORG

Unless explicitly silenced.

//内容来自AnYun.ORG

In the face of ambiguity, refuse the temptation to guess.

//安云网,anyun.org

There should be one-- and preferably only one --obvious way to do it. //copyright AnYun.ORG

Although that way may not be obvious at first unless you're Dutch. //本文来自安云网

Now is better than never. //ANYUN.ORG

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. //ANYUN.ORG

Namespaces are one honking great idea -- let's do more of those!

//内容来自AnYun.ORG


//内容来自AnYun.ORG

顶一下
(0)
0%
踩一下
(0)
0%
------分隔线----------------------------
发表评论
请自觉遵守互联网相关的政策法规,严禁发布色情、暴力、反动的言论。
评价:
验证码: 点击我更换图片
相关内容
推荐内容