Discuss / Python / 答案

答案

Topic source

sorted是按key对应的函数结果进行排序 所以: 1.def by_name(t): return t[0]

  1. def by_name(t): return t[1]

  • 1

Reply