Discuss / Python / #如果不考虑参数检查

#如果不考虑参数检查

Topic source

shoppingxi

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

    if L==[]:

        return (None, None)

    else:

        m,n=L[0],L[0]

        for x in L:

            m=min(m,x)

            n=max(n,x)

        return m, n


  • 1

Reply