擅长:python、mysql、java
<p>您应该使用Python的<code>glob</code>模块:<a href="https://docs.python.org/3/library/glob.html" rel="nofollow noreferrer">https://docs.python.org/3/library/glob.html</a></p>
<p>例如:</p>
<pre><code>import glob
for path in glob.iglob(directory + "file_*.xlsx"):
pd.read_excel(path)
# ...
</code></pre>