find
查看字符串是否在我写了字符串里,在的话返回开始的索引值,不再的话返回-1
![]()
2index
和find一样,只能说会报一个错误
![]()
count
查看字符串在我写的字符串中出现了几次
![]()
replace
可以替换我写的字符串
![]()
split
可以把每个字符以单词的形式分割出来
![]()
capitalize
把字符串首字母大写
![]()
title
把字符串中每个单词的首字母大写
![]()
endswith
查看字符串是否以obj开头,是返回true,不是返回false

网友评论