标签:
自从20世纪90年代初Python语言诞生至今,它逐渐被广泛应用于处理系统管理任务和Web编程。
Python在设计上坚持了清晰划一的风格,这使得Python成为一门易读、易维护,并且被大量用户所欢迎的、用途广泛的语言。
Python的设计哲学是“优雅”、“明确”、“简单”。因此,Perl语言中“总是有多种方法来做同一件事”的理念在Python开发者中通常是难以忍受的。Python开发者的哲学是“用一种方法,最好是只有一种方法来做一件事”。在设计Python语言时,如果面临多种选择,Python开发者一般会拒绝花俏的语法,而选择明确的没有或者很少有歧义的语法。由于这种设计观念的差异,Python源代码通常被认为比Perl具备更好的可读性,并且能够支撑大规模的软件开发。这些准则被称为Python格言。在Python解释器内运行import this可以获得完整的列表。
经过几年的发展,python有了很多优秀框架,django,flask,web.py,等极大的扩展了python,提高了开发效率
python web框架优点1:
优点2:
优点3:
python web框架优点4:
优点5:
人生苦短,我用python
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!
名可名, 请常名
标签:
原文地址:http://www.cnblogs.com/zhangdianke/p/4921731.html