擅长:python、mysql、java
<p>您可以使用<code>str.startswith</code>并将生成的布尔数组的负数传递给<a href="http://pandas.pydata.org/pandas-docs/version/0.21/generated/pandas.DataFrame.loc.html" rel="nofollow noreferrer">^{<cd2>}</a>:</p>
<pre><code>df = df.loc[:, ~df.columns.str.startswith('Unnamed')]
</code></pre>