擅长:python、mysql、java
<p>您可以使用os.walk()遍历给定目录中的每个子目录和文件。有关详细信息,请参阅<a href="https://www.geeksforgeeks.org/os-walk-python/" rel="nofollow noreferrer">https://www.geeksforgeeks.org/os-walk-python/</a></p>
<pre><code>for (root,dirs,files) in os.walk('../conv_files'):
#add your code here
</code></pre>