美感地方Python禅
2013-05-01 11:40
435 查看
废话就不多说了,开始。。。
Tim Peters 写了名著的Python 禅,即Python哲学的总结性手册。想必,Python爱好者都晓得吧!不晓得的话,请看上面Time Peters 的原版“ Zen of Python”(不想坏破原意的美感,所以没有翻译,请谅解。).
每日一道理
书,各种各样的书。书,寄托着人类热切的希望;书,蕴含着人类丰富的感悟。提起书,会有说不完的话语……
是否是有些地方好不解理,这时必定的。在成为名一深资的Python程序员前,不解理就是先进的基石。
文章结束给大家分享下程序员的一些笑话语录:
自行车
一个程序员骑着一个很漂亮的自行车到了公司,另一个程序员看到了他,问 到,“你是从哪搞到的这么漂亮的车的?”
骑车的那个程序员说, “我刚从那边过来, 有一个漂亮的姑娘骑着这个车过来, 并停在我跟前,把衣服全脱了,然后对我说,‘你想要什么都可以’”。
另一个程序员马上说到, “你绝对做了一个正确的选择, 因为那姑娘的衣服你 并不一定穿得了”。
Tim Peters 写了名著的Python 禅,即Python哲学的总结性手册。想必,Python爱好者都晓得吧!不晓得的话,请看上面Time Peters 的原版“ Zen of 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 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!
是否是有些地方好不解理,这时必定的。在成为名一深资的Python程序员前,不解理就是先进的基石。
文章结束给大家分享下程序员的一些笑话语录:
自行车
一个程序员骑着一个很漂亮的自行车到了公司,另一个程序员看到了他,问 到,“你是从哪搞到的这么漂亮的车的?”
骑车的那个程序员说, “我刚从那边过来, 有一个漂亮的姑娘骑着这个车过来, 并停在我跟前,把衣服全脱了,然后对我说,‘你想要什么都可以’”。
另一个程序员马上说到, “你绝对做了一个正确的选择, 因为那姑娘的衣服你 并不一定穿得了”。
相关文章推荐
- python和java不同的地方
- 苹果推送APNS的一个容易错误的地方
- lamp+vsftp +zend optimizer 配置,需要注意的地方
- 一种预编译容易出错的地方:
- 使用指针赋值一些需要注意的地方
- Snort的匹配算法-也是cpu计算占用大的地方
- linux操作系统下发布java项目需要注意的地方
- Linux设置PATH环境变量的几个地方和设置方法
- Ogre3D开放资源地带 是什么地方呀?
- 逻辑层(控制层)处理数据的地方
- PHP IN_ARRAY 函数 使用需要注意的地方
- spfa找负环要注意的地方
- Oracle9i安装图解和注意的地方
- iOS 局部变量 setTag后可在别的地方调用 viewWithTag
- 网站使用了UrlRewriter.dll伪静态,iis需要配置哪些地方
- 使用String的HashCode作为Map主键需要注意的地方
- log4net在vs2008中的使用及需注意的地方
- cmd执行Java源码需要注意的一些地方
- Symbian系统上C工程师需要特别注意的地方
- 运算符的小技巧或容易出错的地方