Discuss / Python / 交作业

交作业

Topic source

愚者长安

#1 Created at ... [Delete] [Delete and Lock User]
def findMinAndMax(L):    if L:        Max, Min = L[0], L[0]        for i in L:            if Max < i:                Max = i            if Min > i:                Min = i        return Max, Min    else:        strout = '传入为空'        return strout

  • 1

Reply