摘要: day 7 字符串的其他内置方法 移除字符串首尾的指定字符,可以选择方向 s1 = '$$$jason$$$' print(s1.strip('$')) print(s1.lstrip('$')) print(s1.rstrip('$')) 大小写相关操作 s2 = 'JAHSKDsldjasl' 阅读全文
posted @ 2022-03-09 17:58 FYytfg 阅读(42) 评论(0) 推荐(0)