通过海量题库、编程比赛和实时排名,系统化提升您的编程能力。
#编写函数,模拟Python内置函数sorted()。
def Sorted(v): t = v[::] r = [] while t: tt = min(t) r.append(tt) t.remove(tt) return r