擅长:python、mysql、java
<p>你可以像@Anurag has detailed那样使用<code>os.walk</code>,也可以尝试我的小型<a href="http://pypi.python.org/pypi/pathfinder/0.4.1" rel="nofollow">^{<cd2>}</a>库:</p>
<pre><code>data = [parse_file(f) for f in pathfinder.find(GSB_FOLDER), just_files=True]
</code></pre>