Discuss / Python / 交作业

交作业

Topic source

冬歌

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

    if L==[]:

        return (None, None)

    else:

        max = min =L[0]

        for i in L:

            if i>max:

                max = i

            if i<min:

                min = i

        return (min,max)


  • 1

Reply