Discuss / Python / 交作业~

交作业~

Topic source
if len(L)==0:
    return(None,None)
else:
    a=b=L[0]
    for x in L:
        if x<a:
            a=x
        elif x>b:
            b=x
    return(a,b)

  • 1

Reply