擅长:python、mysql、java
<p>使用<a href="https://docs.python.org/3/library/functions.html#max" rel="nofollow noreferrer">^{<cd1>}</a>函数:</p>
<pre><code>max(your_list, key=len)
</code></pre>
<p>您将得到最长的列表,如果需要实际长度,请再次使用<code>len</code>:</p>
^{pr2}$
<p>这是<a href="https://repl.it/repls/SuddenSingleSuperuser" rel="nofollow noreferrer">live example</a></p>