擅长:python、mysql、java
<p>在Python list<code>index</code>方法中,可以指定其他参数:</p>
<p><code>start</code>:从哪个索引开始搜索</p>
<p><code>end</code>:应该搜索到哪个索引项</p>
<p>找到第一个索引后,可以通过在第一个出现索引之后设置<code>start</code>索引来再次尝试搜索</p>
<p>参考:<a href="https://docs.python.org/3/tutorial/datastructures.html" rel="nofollow noreferrer">https://docs.python.org/3/tutorial/datastructures.html</a></p>