Python开篇——Python的哲学
2016-11-07 16:51
260 查看
今天奉上Python设计哲学,宣告着自己正式开始系统的学习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!
想当一把老司机,结果死在了半路。。。
这是前言,也是遗言
----------------------------------------------
对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!
想当一把老司机,结果死在了半路。。。
这是前言,也是遗言
----------------------------------------------
对Python充满期待……
相关文章推荐
- 【Python使用笔记】——开篇
- Python 学习日知录(开篇)
- 开篇 why python&&what python
- python基础教程学习笔记 — 开篇
- 运维学python之爬虫基础篇(一)开篇
- python的编程哲学
- 【转】开篇python--明白python文件如何组织,理解建立源文件
- Python基础:开篇
- Python哲学
- python 哲学或者说文化
- python_Day1_基础知识开篇
- Python开篇——简介、pip和conda
- 用Python实现的数据结构与算法:开篇
- [TPYBoard - Micropython之会python就能做硬件 开篇]会python就能做硬件!
- Python学习(一)------开篇
- python3精简笔记——开篇
- python之开篇---hello world!
- python-面向对象(一)——开篇基础
- Python之开篇
- python的编程哲学