Discuss / Python / 。。。

。。。

Topic source

def findMinAndMax(L): a=99 b=0 if len(L)==0: return (None,None) for x in L: if a>x: a=x if b<x: b=x return (a,b)


  • 1

Reply