擅长:python、mysql、java
<p><a href="http://docs.python.org/2/tutorial/datastructures.html#more-on-lists" rel="nofollow">^{<cd1>}</a>对列表进行适当排序。它不返回新列表。事实上,由于默认情况下不返回任何内容,它返回<code>None</code>。在</p>
<p>如果要返回已排序的列表,可以使用<a href="http://docs.python.org/2/library/functions.html#sorted" rel="nofollow">^{<cd3>}</a>:</p>
<pre><code>List1 = sorted(List1)
</code></pre>