if len(L) == 0: return (None,None) small=L[0] big=L[0] for item in L: small = min(small,item); big = max(big,item); return (small, big)
Sign in to make a reply
tengxun28