if L==[]: return (None, None) else: max=min=L[0] for x in L: if x<min: min=x elif x>max: max=x return (min, max)
Sign in to make a reply
倒吃甘蔗