擅长:python、mysql、java
<blockquote>
<p><strong>What about without loop :</strong></p>
</blockquote>
<pre><code>list_1 = [('coin unit', 9.0), ('normal margin requirements', 8.5), ('futures industry', 8.2), ('wild cryptocurrency market', 7.333333333333334), ('biggest financial institutions', 6.833333333333334), ('futures market', 1.0), ('biggest banks', 0.5), ('cryptocurrency frenzy', 0.5)]
print(list(filter(lambda x:x[1]>1,list_1)))
</code></pre>
<p>输出:</p>
<pre><code>[('coin unit', 9.0), ('normal margin requirements', 8.5), ('futures industry', 8.2), ('wild cryptocurrency market', 7.333333333333334), ('biggest financial institutions', 6.833333333333334)]
</code></pre>
<p>注意:千万不要用<code>list</code>作为变量名,因为list在python中是一个关键字</p>