python之禅

发布时间:2019-05-06 22:10:20编辑:auto阅读(1879)

    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
    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!

关键字