The Zen of Python

Source: Internet
Author: User

"""
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 is one--and preferably only one--obvious the-do it.
Although that is 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 could be a good idea.
Namespaces is one honking great idea – let's do more than those!
"""


"""
The Zen of Python, by Titus Mpetes
Beauty is better than ugliness.
Explicit is better than implicit.
Simplicity is better than complexity.
The complexity is better than the clutter.
Flattening is better than nesting.
The better the density of the sparse.
Easy to read.
Special conditions are not enough to break the rules.
Although practicality is more than pure.
Errors should not be passed silently.
Unless explicitly stated.
The temptation to face ambiguity and refuse to speculate.
There should be one--preferably only one--a clear way to do it.
Although this may not be obvious, unless you are the first Dutch.
Now better than nothing.
Though never better than now.
If the implementation is difficult to explain, this is not a good idea.
If it's easy to explain, it might be a good idea.
Namespaces are a great idea--let's do more!
"""
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.