会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
6+0
博客园
首页
新随笔
联系
订阅
管理
随笔分类 -
str
join
摘要:''.join(list) 将列表、元组转化成字符串
阅读全文
posted @
2020-08-04 22:40
6+0
阅读(59)
评论(0)
推荐(0)
startswith、endswith
摘要:startswith(str)
阅读全文
posted @
2020-08-03 11:14
6+0
阅读(94)
评论(0)
推荐(0)
in、find、rfind、index、rindex
摘要:都是用于判断字符串a是否在字符串b里面 find没有找到会返回-1 index没找到会报错
阅读全文
posted @
2020-08-03 09:58
6+0
阅读(152)
评论(0)
推荐(0)
split
摘要:split(char) 按指定字符对字符串进行切片,默认为空字符,包括空格、回车('\n')、制表('\t')
阅读全文
posted @
2020-08-01 21:38
6+0
阅读(273)
评论(0)
推荐(0)
strip、lstrip、rstrip
摘要:strip([char])去掉开头和结尾的字符,默认为空格或换行
阅读全文
posted @
2020-08-01 21:33
6+0
阅读(158)
评论(0)
推荐(0)
公告