Discuss / Python / sorted()

sorted()

Topic source
return t[0]
return -t[1]
就是说key不影响原来列表的内容,key只是返回一个排序依据

  • 1

Reply