摘要: s = 'qwERTyuio' s1 = s.capitalize() #首字母大写,其余小写 s2 = s.title() #用特殊字符和数字分开的单词,首字母大写 s3 = s.swapcase() #大小写反转 s4 = s.center(20) #居中 s5 = s.startswith(' 阅读全文
posted @ 2021-05-30 08:21 hans_hao 阅读(69) 评论(0) 推荐(0)