Discuss / Python / Test

菜问

#1 Created at ... [Delete] [Delete and Lock User]
def by_name(t):
    return t #什么都不做,默认就是按名字排序

def by_score(t):
    l = list(t)
    l[0], l[1] = l[1], l[0]
    return l

  • 1

Reply