擅长:python、mysql、java
<pre><code>def myMin(mylist):
smallest = float('inf')
for l in mylist:
if isinstance(l,list):
tmp = myMin(l)
if tmp < smallest:
smallest = tmp
elif l < smallest:
smallest = l
if smallest == float('inf'):
return None
return smallest
</code></pre>
<p>修正了@Blckknght的评论。在</p>