摘要: Introduction to Architecting Systems for Scalehttp://lethain.com/introduction-to-architecting-systems-for-scale/Few computer science or software development programs attempt to teach the building blocks of scalable systems. Instead, system architecture is usually picked up on the job byworking throu 阅读全文
posted @ 2013-04-08 13:00 blockcipher 阅读(379) 评论(0) 推荐(0)
摘要: http://www.siafoo.net/article/52Contents1Quick Tricks1.1Four Kinds of Quotes1.2Truthfulness of Various Objects1.3Checking if a String Contains a Substring1.4Pretty-Printing a List1.5Integer vs. Float Division1.6Lambda Functions2Lists2.1List Comprehensions2.1.1Mapping the List2.1.2Filtering the List2 阅读全文
posted @ 2013-04-08 12:57 blockcipher 阅读(342) 评论(0) 推荐(0)
摘要: 原文地址:http://jianpx.iteye.com/blog/4864661. import 实际上是python虚拟机把当前的globals()和locals()传进__builtins__.__import__内置函数了,所以实际上干活的是那个__import__函数!2. import对命名空间的影响1)如果是python的内置模块,例如os模块。这些模块是随着python虚拟机启动而加载进来的,但是并没有暴露出来。我们可以通过dir()命令查看当前命名空间Python代码 >>> dir()['__builtins__', '__doc_ 阅读全文
posted @ 2013-04-08 09:42 blockcipher 阅读(430) 评论(0) 推荐(0)
摘要: 编程语言最容易引起战争,战争的原因就是大家都站在自己的领域和项目的角度看待编程语言!如何选择编程语言呢?下面的文章或许给我们一些启迪!Choosing a Programming Language: So easy, a caveman can do ithttp://the-world-is.com/blog/1. IntroductionAbout a week or two ago, I found myself prompting Google and other search engines with questions like, “what is the best program 阅读全文
posted @ 2013-04-08 09:29 blockcipher 阅读(652) 评论(0) 推荐(0)