Discuss / Python / 作业

作业

Topic source

影子_9823

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

  • 1

Reply