zoukankan      html  css  js  c++  java
  • the Zen of Python---转载版

    摘自译文学习区

    http://article.yeeyan.org/view/legendsland/154430

    The Zen of Python

    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!  

    名可名, 请常名

  • 相关阅读:
    C++ String详解
    乏力的编码很累,这里有私货..
    给自己~~微语&&歌单
    2019CSP-J第二轮 B题C题
    HDU 3966 树链剖分+树状数组 模板
    HDU 2255 KM算法 二分图最大权值匹配
    HDU 4280 ISAP+BFS 最大流 模板
    HDU 6181 第k短路
    假装会python--爬取贴吧正文
    HDU 6170 dp
  • 原文地址:https://www.cnblogs.com/frankb/p/6259093.html
Copyright © 2011-2022 走看看