URN Logo
UNIX Resources » Linux » China Linux Forum » Python 编 程 » 7 » import this
announcement 声明: 本页内容为中国Linux论坛的内容镜像,文章的版权以及其他所有的相关权利属于中国Linux论坛和相应文章的作者,如果转载,请注明文章来源及相关版权信息。
Resources
China Linux Forum(finished)
Linux Forum(finished)
FreeBSD China(finished)
linuxforum.net
  业界新闻与评论
  自由软件杂谈
  IT 人生
  Linux软件快递
  翻译作坊
  Linux图书与评论
  GNU Emacs/XEmacs
  Linux 中文环境和中文化
  Linux桌面与办公软件
  Linux 多媒体与娱乐版
  自由之窗Mozilla
  笔记本电脑上的Linux
  Gentoo
  Debian 一族
  网络管理技术
  Linux 安装与入门
  WEB服务器和FTP服务器
  域名服务器和邮件服务器
  Linux防火墙和代理服务器应用
  文件及打印服务器
  技术培训与认证
  Linux内核技术
  Linux 嵌入技术
  Linux设备驱动程序
  Linux 集群技术
  LINUX平台数据库
  系统和网络安全
  CPU 与 编译器
  系统计算研究所专栏
  Linux下的GUI软件开发
  C/C++编程版
  PHP 技 术
  Java&jsp技术
  Shell编程技术
  Perl 编 程
  Python 编 程
  XML/Web Service 技术
  永远的Unix
  FreeBSD世界
   
import this
import this - alula [2005-08-31 14:39 | 1,126 byte(s)]
 
Re: import this - limodou [2005-08-31 18:58 | 207 byte(s)]
 
Re: import this - jhuangjiahua [2005-08-31 21:31 | 3,471 byte(s)]
 
Re: import this - alula [2005-09-01 09:21 | 177 byte(s)]
 
Re: import this - passworld [2005-09-01 12:11 | 63 byte(s)]
 
Re: import this - alula [2005-09-01 14:58 | 64 byte(s)]
 
Re: import this - jhuangjiahua [2005-08-31 21:34 | 173 byte(s)]
 
Re: import this - limodou [2005-08-31 22:43 | 78 byte(s)]
 
Subject: import this
Author: alula    Posted: 2005-08-31 14:39    Length: 1,126 byte(s)
[Original] [Print] [Top]
>>> 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!
>>>
----
温故知新
[Original] [Print] [Top]
Subject: Re: import this
Author: limodou    Posted: 2005-08-31 18:58    Length: 207 byte(s)
[Original] [Print] [Top]
在啄木鸟的wiki上有它的译文。

http://wiki.woodpecker.org.cn/moin.cgi/PythonZen
----
[Original] [Print] [Top]
Subject: Re: import this
Author: jhuangjiahua    Posted: 2005-08-31 21:31    Length: 3,471 byte(s)
[Original] [Print] [Top]
limodou 前辈的译文好棒~~~



蠎 禅
The Zen of 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!

-- Tim Peters
-- by Tim Peters
-- 译:limodou


[Original] [Print] [Top]
Subject: Re: import this
Author: jhuangjiahua    Posted: 2005-08-31 21:34    Length: 173 byte(s)
[Original] [Print] [Top]
奇怪了

[pre] 和 [code] 标签内的居然也会换行

预览的时候都好好的 , 发布后就乱了


哪个标签可以不换行呀
[Original] [Print] [Top]
Subject: Re: import this
Author: limodou    Posted: 2005-08-31 22:43    Length: 78 byte(s)
[Original] [Print] [Top]
没办法,这个论坛就这样。我几年前就提过,老大不愿意改。不过换行是后来才出现的。
----
[Original] [Print] [Top]
Subject: Re: import this
Author: alula    Posted: 2005-09-01 09:21    Length: 177 byte(s)
[Original] [Print] [Top]
也许这个方法开始不是很明显,除非你是荷兰人 Although that way may not be obvious at first unless you're Dutch.

不知道这个怎么理解?
----
温故知新
[Original] [Print] [Top]
Subject: Re: import this
Author: passworld    Posted: 2005-09-01 12:11    Length: 63 byte(s)
[Original] [Print] [Top]
不会吧? Guido van Rossum 还有一群名字里有van的人物。
----
[Original] [Print] [Top]
Subject: Re: import this
Author: alula    Posted: 2005-09-01 14:58    Length: 64 byte(s)
[Original] [Print] [Top]
谢谢指点。
原来如此。我不知道的太多了,惭愧。
----
温故知新
[Original] [Print] [Top]
« Previous thread
我的小程序和问题
Python 编 程
7
Next thread »
Q:请问如何获得一个文件的修改时间
     

Copyright © 2007 UNIX Resources Network, All Rights Reserved.      About URN | Privacy & Legal | Help | Contact us
备案序号: 京ICP备05006143    webmaster: webmaster@unixresources.net
This page created on 2008-07-17 04:11:04, cost 0.058314085006714 ms.