09 2013 档案

模式匹配
摘要:1、首先学习最简单的模式匹配问题,其实就是查找字符串的问题,问题简单描述:从一段英文字符串中查找某一个单词或一个简短的字符串,并记录下该单词在整个字符串的位置,也即起始索引在下列一组文本行中查找包含字符串”ould“的行:Ah Love! could you and I with Fate conspireTo grasp this sorry Scheme of Things entire,Would not we shatter it to bits and thenRemould it nearer to the Heart's Desire!程序执行后输出下列结果:Ah Lov 阅读全文

posted @ 2013-09-13 14:28 CoolRandy 阅读(382) 评论(0) 推荐(0)

About Unicode
摘要:http://www.joelonsoftware.com/articles/Unicode.html 阅读全文

posted @ 2013-09-06 13:59 CoolRandy 阅读(166) 评论(0) 推荐(0)

Dive into python学习笔记
摘要:http://woodpecker.org.cn/diveintopython/index.html1.第一个程序odbchelper.py 1 def buildConnectionString(params): 2 """Build a connection string from a dictionary 3 4 Returns string. 5 """ 6 return ";".join(["%s=%s" % (k, v) for k, v in params.items()]) 7 阅读全文

posted @ 2013-09-03 15:53 CoolRandy 阅读(334) 评论(0) 推荐(0)