擅长:python、mysql、java
<p>从
<a href="https://docs.python.org/2/tutorial/datastructures.html" rel="nofollow">https://docs.python.org/2/tutorial/datastructures.html</a><br/>
Index:“返回值为x的第一项的列表中的索引。”</p>
<p>一个简单的解决方案是:<br/></p>
<pre><code>for i in range(len(top)):
if top[i] == 3:
print('recommendation found at: ' + str(i))
</code></pre>