语法
index()方法语法:
str.index(str, beg=0, end=len(string))
参数
str -- 指定检索的字符串beg -- 开始索引,默认为0。end -- 结束索引,默认为字符串的长度。