按照姓名排序
return t[0]
按照成绩排序
def by_score(t): return t[1] L2 = sorted(L,key=by_score,reverse=True)
Sign in to make a reply
lostanother
按照姓名排序
按照成绩排序