擅长:python、mysql、java
<p>这取决于您使用的Python版本。在python2中有<code>os.path.walk()</code>(<a href="https://docs.python.org/2/library/os.path.html#os.path.walk" rel="nofollow">docs</a>),但在python3中,它已被弃用并被<code>os.walk()</code>(<a href="https://docs.python.org/3/library/os.html#os.walk" rel="nofollow">docs</a>)取代。在</p>
<p>您声称在注释中使用的Python(x,y)<a href="https://code.google.com/p/pythonxy/wiki/Downloads" rel="nofollow">seems to be based on Python 2</a>。在</p>