Discuss / Python / 脑袋转过来就容易了

脑袋转过来就容易了

Topic source

dudefitslol

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

#按姓名

def by_name(t):

return t[0] 

#按成绩从低到高

def by_score(t):

    return pow(t[1],-1)  #取倒数映射按默认小大排列即可


  • 1

Reply