#编写函数,模拟Python内置函数sorted。

#编写函数,模拟Python内置函数sorted()。


答案

def Sorted(v):
    t = v[::]
    r = []
    while t:
        tt = min(t)
        r.append(tt)
        t.remove(tt)
    return r

题目信息

题号:7436
题型:简答题
难度:普通