初级教程:1.0 Python简介

Python是一种面向对象的解释型计算机语言,是Guido van Rossum于1989年发明。第一个公开发行版发行于1991年。

Python的设计哲学是“优雅”,“明确”,“简单”。在Python解释器内运行import this可以获得传说中的Zen of 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!

Now is better than never.It is time to go!

  • 发表于:
  • 原文链接:http://kuaibao.qq.com/s/20171209G00GWV00?refer=cp_1026

相关快讯

扫码关注云+社区