Discuss / Python / ok啦

ok啦

Topic source

def findMinAndMax(L): if len(L)==0: Lmin=None Lmax=None elif len(L)==1: Lmin=L[0] Lmax=L[0] else: Lmin=min(L) Lmax=max(L) return (Lmin,Lmax)

原么

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

恩。你没用到迭代


  • 1

Reply