2013年4月24日

CVS Keyword substitution

摘要: http://ximbiot.com/cvs/manual/cvs-1.11.6/cvs_12.html12.1 Keyword ListThis is a list of the keywords:$Author$The login name of the user who checked in the revision.$Date$The date and time (UTC) the revision was checked in.$Header$A standard header containing the full pathname of the RCS file, the rev 阅读全文

posted @ 2013-04-24 17:32 androidme 阅读(438) 评论(0) 推荐(0)

Python正则表达式指南

摘要: http://www.cnblogs.com/huxi/archive/2010/07/04/1771073.html1. 正则表达式基础1.1. 简单介绍正则表达式并不是Python的一部分。正则表达式是用于处 理字符串的强大工具,拥有自己独特的语法以及一个独立的处理引擎,效率上可能不如str自带的方法,但功能十分强大。得益于这一点,在提供了正则表达式的 语言里,正则表达式的语法都是一样的,区别只在于不同的编程语言实现支持的语法数量不同;但不用担心,不被支持的语法通常是不常用的部分。如果已经在其他 语言里使用过正则表达式,只需要简单看一看就可以上手了。下图展示了使用正则表达式进行匹配的流程: 阅读全文

posted @ 2013-04-24 10:56 androidme 阅读(218) 评论(0) 推荐(0)

理解Python命名机制

摘要: http://blog.csdn.net/lanphaday/article/details/1734990引子我热情地邀请大家猜测下面这段程序的输出:class A(object): def __init__(self): self.__private() self.public() def __private(self): print 'A.__private()' def public(self): print 'A.public()'class B(A): def __private(self): print 'B.__private()' 阅读全文

posted @ 2013-04-24 09:19 androidme 阅读(177) 评论(0) 推荐(0)

导航