擅长:python、mysql、java
<p>下面是一个关于如何在python中排序的好入门:<a href="https://wiki.python.org/moin/HowTo/Sorting" rel="nofollow noreferrer">https://wiki.python.org/moin/HowTo/Sorting</a>。你知道吗</p>
<p>但是您拥有的<code>condensed_data</code>并没有所有的条目?如果您希望只获取压缩数据,则可能需要尝试列表理解,例如:</p>
<pre><code>condensed_data = sorted([item[1] for item in data if item[1] in ('Derek Carr', 'Oakland Raiders')])
</code></pre>