if not L: Max = Min = None else: Max = Min = L[0] for i in L: if i > Max: Max = i if i < Min: Min = i return (Min, Max)
Sign in to make a reply
菜问