擅长:python、mysql、java
<p>可以使用嵌套列表理解来筛选以<code>@</code>开头的字符串(假设列表列表存储为变量<code>l</code>):</p>
<pre><code>[[i for i in s if not i.startswith('@')] for s in l]
</code></pre>
<p>这将返回:</p>
<pre><code>[['That', 'heart', 'sliding', 'into', 'the', 'waste', 'basket', '.', ':('], ['“', ':', 'I', 'hate', 'Japanese', 'call', 'him', '"', 'bani', '"', ':(', ':(', '”', 'Me', 'too']]
</code></pre>