Ray's playground

 

2010年12月23日

Recipe 1.12. Controlling Case(Python Cookbook)

摘要: capitalizeCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--1'onetWothrEe'.capitalize()2'Onetwothree'3'hellosunshine'.title()4'HelloSunshine'5"abc".upper()6'ABC'7"RAY".lower()8'ray'9importstring10notrans=string.maketrans('','')11de 阅读全文

posted @ 2010-12-23 22:00 Ray Z 阅读(180) 评论(0) 推荐(0) 编辑

Recipe 1.11. Checking Whether a String Is Text or Binary(Python Cookbook)

摘要: [代码] 阅读全文

posted @ 2010-12-23 21:14 Ray Z 阅读(175) 评论(0) 推荐(0) 编辑

导航