Discuss / Python / 练习

练习

Topic source
def findMinAndMax(L):    if len(L) == 0:        return None, None    elif isinstance(L, (int, float)):        raise TypeError('不得行类型')    else:        return min(L), max(L)

  • 1

Reply