如果包含子字符串返回开始的索引值,否则抛出异常。 实例. 以下实例展示了index()方法的实例:. #!/usr/bin/python. str1 = "this is string example..
確定! 回上一頁