擅长:python、mysql、java
<p>使用<a href="https://docs.python.org/3/library/functions.html#any" rel="nofollow noreferrer">^{<cd1>}</a>:</p>
<pre><code>filtered_names = filter(lambda item: any(x in item for x in jen), names)
</code></pre>
<p>或者作为一个列表:</p>
<pre><code>filtered_names = [item for item in names if any(x in item for x in jen)]
</code></pre>