Discuss / Python / 交作业

交作业

Topic source

崆峒奇兵

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

if L == []:

        return (None, None)

    else:

        for min in L:

            for x in L:

                if x < min:

                    min = x

        for max in L:

            for y in L:

                if y > max:

                    max = y

        return (min, max)


  • 1

Reply