擅长:python、mysql、java
<p>改用<code>startswith</code>。你知道吗</p>
<pre><code>result_list = [
'0 instances of 44 bpm',
'0 instances of 45 bpm',
'10 instances of 46 bpm',
'22 instances of 47 bpm',
'354 instances of 65 bpm',
'20 instances of 145 bpm'
]
strip_zero = [x for x in result_list if not x.startswith('0 instances')]
print(strip_zero)
</code></pre>