拿你有的,换你要的;这个世界一直如此,很残酷,却很公平!
摘要: st='hello kitty' print(st.count('l')) #数字符串l的个数 print(st.capitalize() ) #字符串首字母大写 print(st.center(50,'-')) #居中 print(st.casefold()) #返回将字符串中所有大写字符转换为小 阅读全文
posted @ 2020-06-11 15:34 bowuwb 阅读(90) 评论(0) 推荐(0)
Fork me on GitHub