Ray's playground

 

2011年2月11日

Getting Started(Chapter 1 of Python 2.6 Text Processing)

摘要: codeCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->1importsys2importstring34CHAR_MAP=dict(zip(string.ascii_lowercase,string.ascii_lowercase[13:26]+5string.ascii_lowercase[0:13]))67defrotate13_letter(letter):8"""9Returnthe13-charrot 阅读全文

posted @ 2011-02-11 23:26 Ray Z 阅读(180) 评论(0) 推荐(0) 编辑

Item 21: Limit Visibility of Your Types(Effective C#)

摘要: Those classes and interfaces that you expose publicly to the outside worldare your contract: You must live up to them. The more cluttered that interfaceis, the more constrained your future direction is. The fewer publictypes you expose, the more options you have to extend and modify anyimplementatio 阅读全文

posted @ 2011-02-11 21:08 Ray Z 阅读(189) 评论(0) 推荐(0) 编辑

导航