Discuss / Python / 交作业

交作业

Topic source

c大番薯

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

    if len(L) == 0:

        return (None,None)

    if len(L) == 1:

        return (L[0],L[0])

    one = []

    for i in L:

        one.append(i)

    minone = min(one)

    maxone = max(one)

    return (minone,maxone)


  • 1

Reply