python04day】的更多相关文章

回顾 int str bool str: s1='tangdaren123' 索引: s1[0] s1[-1] s1[:3] s1[:5:2] s1[-1:-4:-1] s1[-1:-6:-2] 常用操作方法: upper.lower startswith.endswith(返回bool) split 默认按照空格分割,可指定分隔符将str分割成list strip默认去除字符串两边空格换行符制表符 isdecimal isalpha isalnum format格式化输出 count数出字符串…