擅长:python、mysql、java
<p>使用<a href="https://numpy.org/doc/stable/reference/generated/numpy.isin.html" rel="nofollow noreferrer">^{<cd1>}</a>:</p>
<pre class="lang-py prettyprint-override"><code>mask = np.isin(actions[0], keys, invert=True)
result = actions[:, mask]
</code></pre>