擅长:python、mysql、java
<p>如果我理解你的问题,文件的排序顺序与你希望的顺序相反。在</p>
<p>您可能需要查看<a href="https://docs.python.org/2/howto/sorting.html" rel="nofollow noreferrer">^{<cd1>}</a>的文档</p>
<p>我建议使用反向标志:</p>
<p><code>files = sorted(files, key=lambda, reverse=True)</code></p>