摘要: 1.str s1 = 'taiBAi' # capitalize 首字母大写,其余变小写 print(s1.capitalize()) #Taibai # swapcase 大小写翻转 print(s1.swapcase()) #TAIbaI # title #每个单词的首字母大写 msg= 'ta 阅读全文
posted @ 2020-05-13 21:08 水晶冰洛 阅读(111) 评论(0) 推荐(0) 编辑