Discuss / Python / 返回形式自动为tuple

返回形式自动为tuple

Topic source
if L == []:
    return None,None
max = min = L[0]
for n in L:
    if min > n:
        min = n
    elif max < n:
        max = n
return min,max

忽略了“=”的情况,,各位自行脑补噻!!!


  • 1

Reply