擅长:python、mysql、java
<p>将<code>return minimum</code>更改为<code>return first.index(minimum)</code>。你知道吗</p>
<p>或使用</p>
<pre><code>def index_smallest(first):
return first.index(min(first))
</code></pre>
<p>演示:</p>
<pre><code>>>> first = [1, 0, -1, 3]
>>> first.index(min(first))
2
</code></pre>