什么是Python?Python的设计哲学?

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了什么是Python?Python的设计哲学?相关的知识,希望对你有一定的参考价值。

  • Python?

Python(英国发音:/?pa?θ?n/ 美国发音:/?pa?θɑ?n/

Python的创始人为吉多·范罗苏姆Guido van Rossum

1989年的圣诞节期间吉多·范罗苏姆为了在阿姆斯特丹打发时间,决心开发一个新的脚本解释程序,作为ABC语言的一种继承。

之所以选中Python作为程序的名字,是因为他是BBC电视剧——蒙提·派森的飞行马戏团Monty Python‘s Flying Circus)的爱好者。

 

Import this

 

  1. Beautiful is better than ugly.
  2. Explicit is better than implicit.
  3. Simple is better than complex.
  4. Complex is better than complicated.
  5. Flat is better than nested.
  6. Sparse is better than dense.
  7. Readability counts.
  8. Special cases aren‘t special enough to break the rules.
  9. Although practicality beats purity.
  10. Errors should never pass silently.
  11. Unless explicitly silenced.
  12. In the face of ambiguity, refuse the temptation to guess.
  13. There should be one-- and preferably only one --obvious way to do it.
  14. Although that way may not be obvious at first unless you‘re Dutch.
  15. Now is better than never.
  16. Although never is often better than *right* now.
  17. If the implementation is hard to explain, it‘s a bad idea.
  18. If the implementation is easy to explain, it may be a good idea.

以上是关于什么是Python?Python的设计哲学?的主要内容,如果未能解决你的问题,请参考以下文章

Python的设计哲学

从定义变量小窥Python和Scala的设计理念不同

python是什么?python热门的原因!

Python 为什么如此设计?

Python 为什么如此设计?

Python黑帽编程2.1 Python编程哲学