Discuss / Python / 调试了N久。。哎

调试了N久。。哎

Topic source

    if len(L)==0:

        return(None, None)    

    else:

        min=L[0]

        max=L[0]

        for i in L:      

            if i <= min:

                min=i

            if i >= max:

                max=i

    return(min, max)


  • 1

Reply