Discuss / Python / 垃圾写法

垃圾写法

Topic source

涵_天

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



  • 1

Reply