Discuss / Python / 人生苦短,我用Python

人生苦短,我用Python

Topic source

hcie_zpc

#1 Created at ... [Delete] [Delete and Lock User]
    if len(L) == 0:
        return (None,None)
    min = max = L[0]
    for x in L:
        if min > x:
            min = x
        if max < x:
            max = x
    return (min, max)

这个是怎么发的?


  • 1

Reply