Discuss / Python / 作业

作业

Topic source

__吖糖

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

def findMinAndMax(*L): if len(L)==0: return (None,None) max=L[0] min=L[0] for l in L: if l>max : max = l if l<min : min = l return (min, max)


  • 1

Reply