Ray's playground

 

2010年12月20日

Recipe 1.8. Checking Whether a String Contains a Set of Characters(Python Cookbook)

摘要: maketransCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--1intab="aeiou"2outtab="12345"3fromstringimportmaketrans4trantab=maketrans(intab,outtab)5s="thisisastringexample...wow!"6prints.translate(trantab)7th3s3s1str3ng2x1mpl2...w4w![代 阅读全文

posted @ 2010-12-20 22:18 Ray Z 阅读(362) 评论(0) 推荐(0)

Working with Characters and Strings(Chapter 3 of Windows Via C/C++)

摘要: Because kernel object handles are process-relative, performing these tasks is difficult. However, Microsoft had several good reasons for designing the handles to be process-relative. The most important reason was robustness. If kernel object handles were systemwide values, one process could easil 阅读全文

posted @ 2010-12-20 21:25 Ray Z 阅读(241) 评论(0) 推荐(0)

导航