Loading

摘要: str 补充的方法: capitalize():首字母大写,其余变小写 s = 'liBAI' s1 = s.capitalize() print(s1) # Libai swapcase():大小写翻转 s = 'LiBai' s1 = swapcase() print(s1) # lIbAI t 阅读全文
posted @ 2020-08-01 21:25 吃了好多肉 阅读(106) 评论(0) 推荐(0) 编辑