if L==[]:
return(None, None)
else:
n=L[0]
m=L[0]
for i in L:
if i<=n:
n=i
for o in L:
if o>=m:
m=o
return (n, m)
Sign in to make a reply
陈蔺川
if L==[]:
return(None, None)
else:
n=L[0]
m=L[0]
for i in L:
if i<=n:
n=i
for o in L:
if o>=m:
m=o
return (n, m)