摘要: lower():将大写字母全部转为小写字母。如: name='G'b=name.lower() title”":将字符串转化为标题,即所有单词的首字母大写,其他字母小写。使用方法同lower() replace:返回某字符串的所有匹配项均被替换之后得到的字符串。 'This is a test'.replace('is','are') ... 阅读全文
posted @ 2014-06-11 08:50 程序员小王 阅读(257) 评论(0) 推荐(0) 编辑