Discuss / Python / 打卡,作业

打卡,作业

Topic source

人玉匆花

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

def by_name(t):

    return t[0].lower()

def by_score(t):

    return -t[1]

**PS:**1.是对列表中单独元素的处理,不是对列表的处理。2.方法函数也指定了以元素中那个元素为排序基准。


  • 1

Reply