index()如何使用多个参数(python)
提问:index()如何使用多个参数(python)
网友回答:
index的定义为
str.index(str, beg=0, end=len(string))
如
"hello wrold".index("l",5)
从hello wrold第5个开始找l,结果为
9