Discuss / Python / day4

把握思念

#1 Created at ... [Delete] [Delete and Lock User]

    if L==[]:

        return (None, None)

    max=min=L[0]

    for i in L:

        if i>max:

            max=i

        if i<min:

            min=i

    return(min,max)

终于对了!


  • 1

Reply