Discuss / Python / 作业

作业

Topic source

一度剑心

#1 Created at ... [Delete] [Delete and Lock User]

  if len(L)==0:

    return (None, None)

  min=max=L[0] 

  for a in L:

    if a<min:

      min=a

    elif a>max:

      max=a

  return (min, max)


  • 1

Reply