python之禅-----我最喜欢的翻译版

在阿里云上看到的。真的是我看到最好的一个翻译版本了。
尤其是那句“吾将上下而求索”哈哈哈哈哈哈……

发布时间:2018-02-28 来源:网络 上传者:用户
关键字: Peters Python zen TIM
发表文章
摘要:>>>importthisTheZenofPython,byTimPeters#Python之道TimPetersBeautifulisbetterthanugly.#美好胜于丑陋Explicitisbetterthanimplicit.#清楚胜于含混Simpleisbetterthancomplex.#简明胜于复杂Complexisbetterthancomplicated.#复杂胜于晦涩Flatisbetterthannested.#平直胜于曲折Spar

    >>>import this
    The Zen of Python, by Tim Peters
    #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.2
    #疑窦丛生,拒绝猜测
    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!
    #命名空间,多多益善 

原文地址:https://www.cnblogs.com/scott-lv/p/8710072.html

时间: 2024-08-10 22:45:25

python之禅-----我最喜欢的翻译版的相关文章

python之禅 --- import this

>>> import thisThe 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 cou

Python之禅---1、什么是编程语言

1.编程与编程语言: Python是一门编程语言,首先需要搞清楚一下几点: 1.编程目的: #计算机的发明,是为了用机器取代/解放人力,而编程的目的则是将人类的思想流程按照某种能够被计算机识别的表达方式传递给计算机,从而达到让计算机能够像人脑/电脑一样自动执行的效果. 2.什么是编程语言: #上面提及的能够被计算机所识别的表达方式即编程语言,语言是沟通的介质,而编程语言是程序员与计算机沟通的介质.在编程的世界里,计算机更像是人的奴隶,人类编程的目的就命令奴隶去工作. 3.什么是编程:     #

python 之禅

想要真正深入了解一门语言,需要用心去感受.下面是python之禅,python的设计哲学,对于编程很有指导意义.(翻译部分摘自网络,同时自己有一些更改) >>> 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 c

(转)python之禅

凡是用过 Python的人,基本上都知道在交互式解释器中输入 import this 就会显示 Tim Peters 的 The Zen of Python,但它那偈语般的语句有点令人费解,所以我想分享一下我对它的体会,顺带给出我的翻译. The Zen of Python, by Tim Peters Beautiful is better than ugly. Explicit is better than implicit. Simple is better than complex. C

Python之禅中的几句话--传说中的蛇宗总纲

Simple is better than complex. 简洁胜于复杂. Now is better than never. Although never is often better than *right* now. 做也许好过不做,但不假思索就动手还不如不做. 放全文,来源已然不明,若有指明,必当感谢! The Zen of Python, by Tim Peters Beautiful is better than ugly. Explicit is better than imp

Python之禅(原文、中文翻译、解释)

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

Python之禅,亦是人生之禅

C:\Users\Rage>python Python 3.6.3 (v3.6.3:2c5fed8, Oct 3 2017, 18:11:49) [MSC v.1900 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> import this The Ze

25、Python之禅

要求: 爬取网页你好,蜘蛛侠!中的Python之禅中英文版本,并且打印. 目的: 练习使用selenium爬取动态网页的信息. 练习selenium与BeautifulSoup的搭配使用. URL     https://localprod.pandateacher.com/python-manuscript/hello-spiderman/ 方法一: 用selenium 1 from selenium import webdriver 2 import time 3 4 driver = we

第三方苹果开发库之ASIHTTPRequest(翻译版)

本文转载至 http://www.cnblogs.com/daguo/archive/2012/08/03/2622090.html 来自:http://www.dreamingwish.com/dream-2011/apples-third-party-development-libraries-asihttprequest.html 第三方苹果开发库之ASIHTTPRequest ASIHttpRequest库简介.配置和安装 ASIHttpRequest-创建和执行request ASIH