Discuss / Python / 没校验类型

没校验类型

Topic source
if len(L) == 0:
    return (None, None)
min = L[0]
max = L[0]
for x in L:
    if min > x:
        min = x
    if max < x:
        max = x
return (min,max)

  • 1

Reply