擅长:python、mysql、java
<p>你的问题本质上是:</p>
<blockquote>
<p>Given a bunch of lists, how I print out the smallest and biggest of
them (by size)?</p>
</blockquote>
<p>给你:</p>
<pre><code>def print_biggest_and_smallest(mylists):
mylists.sort(key = lambda x:len(x))
smallest = mylists[0]
biggest = mylists[-1]
print(smallest, biggest)
</code></pre>