Discuss / Python / 解:

解:

Topic source

0_0深夜

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

    if len(L)==0:

        return(None,None)

    imax=L[0]

    imin=L[0]

    for v in L:

        if imax<v:

            imax=v

        if imin>v:

            imin=v

    print(imin,imax)

    return (imin, imax)


  • 1

Reply