The Zen of Python

萝卜特(vzever)

来自: 萝卜特(vzever)(我的歌竟成了这一剧的辉煌) 2008-07-20 10:04:37

×
加入小组后即可参加投票
  • 23号

    23号 (http://twitter.com/number23_cn) 2008-07-20 10:27:26

    yes, like this:
    Shell:~ >: python
    Python 2.5.2 (r252:60911, Mar 10 2008, 16:28:59)
    [GCC 3.3.5 (propolice)] on openbsd4
    Type "help", "copyright", "credits" or "license" for more information.
    >>> import this
    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 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!
    >>>

  • 元创

    元创 (我的专业是打酱油) 2008-07-20 12:09:45


    The Zen of Python,
    蛇宗三字经

    作者: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 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!
    每师出,多有名



  • 元创

    元创 (我的专业是打酱油) 2008-07-20 12:30:04

    关于Dutch的意思,我问过Tim,是不是就指Guido,他可没这么说。我想,当时可能就是指他们的小圈子,现在更是Python高手遍地了。

  • 龍在田

    龍在田 (故园行迹) 2008-07-21 13:00:25

    /Python25/Lib/this.py

  • 寻寒

    寻寒 (专注、坚持、重复……) 2008-08-21 14:43:11

    翻译地太牛了!
    科技文章要是都这样译就好了!

  • rIPPER色影师

    rIPPER色影师 (我是签名档) 2008-08-21 15:49:02

    三字经一般

  • 网络机器人

    网络机器人 (_.min(topics, x => x.reply)) 2015-09-17 22:20:16

    @萝卜特(vzever): The Zen of Python

  • 使用牙线中

    使用牙线中 2016-03-09 19:20:23

    腻害

你的回应

回应请先 , 或 注册

97968 人聚集在这个小组
↑回顶部