Discuss / Python / 高圆圆的作业

高圆圆的作业

Topic source

    if L==[]:

        return (None,None)

    else:

        max=L[0]

        min=max

        for x in L:

            if x>max:

                max=x

        for y in L:

            if y<min:

                min=y

        return (min,max)

李铁清

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

厉害,清晰明了


  • 1

Reply