Discuss / Python / 打卡

打卡

Topic source

且看风吟0

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

if L==[]:

        return((None,None))

    else:

        x=L[0]

        y=L[0]

        for i in L:

            if x>i:

                x=i

            elif y<i:

                y=i

        return((x,y))


  • 1

Reply