摘要: import time def tm(*arg, **kwargs): def wrap_fun(fun): def wrap_arg(*arg, **kwargs): print time.time() fun(*arg, **kwargs) print time.time() return wr 阅读全文
posted @ 2016-07-29 18:02 John Liang 阅读(168) 评论(0) 推荐(0) 编辑
摘要: 1.性能 Py3.0运行 pystone benchmark的速度比Py2.5慢30%。Guido认为Py3.0有极大的优化空间,在字符串和整形操作上可 以取得很好的优化结果。 Py3.1性能比Py2.5慢15%,还有很大的提升空间。 2.编码 Py3.X源码文件默认使用utf-8编码,这就使得以下 阅读全文
posted @ 2016-07-29 16:59 John Liang 阅读(195) 评论(0) 推荐(0) 编辑
摘要: "500行或更少" "What I cannot create, I do not understand." -- Richard Feynman 《500行或更少》--开源应用架构系列第四版的源码。 项目的目的在于给阅读者更广的视野,让阅读者理解软件设计者的想法。 项目地址: https://gi 阅读全文
posted @ 2016-07-29 16:52 John Liang 阅读(1081) 评论(0) 推荐(0) 编辑