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) 编辑