下载
登录/ 注册
主页
论坛
视频
热股
可转债
下载
下载

Python之禅。

23-05-01 16:23 613次浏览
阿尔宙斯
+关注
博主要求身份验证
登录用户ID:
1. Beautiful is better than ugly.

优美>丑陋

2. Explicit is better than implicit. Simple is better than complex. Complex is better than complicated.
明了>晦涩,简单>复杂,复杂>凌乱

3. Flat is better than nested.
扁平>嵌套

4. Special cases aren‘t special enough to break the rules. Although practicality beats purity.
虽然实用性很重要,但任何特殊情况都不足以特殊到违背上述规则。(不要为了处理某一个特殊情况,而破坏了上述任何一个规则)

5. Errors should never pass silently. Unless explicitly silenced.
不要忽视任何错误,除非有意为之

6. 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.
遇到模棱两可的地方,不要胡乱猜测。肯定会有一种,通常也是唯一一种,最明显的解决方案。虽然这种解决方案刚开始的时候并不是显而易见的。

7. Now is better than never. Although never is often better than *right* now.
现在开始做比不做好,但是不做比盲目去做好

8. 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.
如果一个方案难于表达,它一定是个坏的想法。如果一个方案易于表达,则它有可能是一个好的主意。

打开淘股吧APP
0
评论(4)
收藏
展开
热门 最新
自闭症爱炒股

23-05-03 15:15

0
热烈庆祝宙斯老师王者归来
义乌之狼

23-05-01 17:43

0
老哥也是python程序员吗,最近我也在写程序
从小亏起

23-05-01 16:29

0
no1
独股剑圣

23-05-01 16:26

0
hello world
刷新 首页上一页 下一页末页
提交