擅长:python、mysql、java
<p>这与Python无关,而是与逻辑有关。你知道吗</p>
<p>将<code>while</code>表达式更改为</p>
<pre><code>while k < len(sort):
</code></pre>
<p>和<code>if</code>表达式</p>
<pre><code>if (j >= len(Rsort)) or (i < len(Lsort) and Lsort[i] < Rsort[j]):
</code></pre>