What does sorting a list of lists in python mean for the following example:

前端 未结 0 1578
日久生厌
日久生厌 2020-12-22 09:43
>> L = [[9, 1], [3, 4]]

>> sorted(L, key=lambda x:x[0])

[[3,4], [9,1]]

The above will sort the list according to the first element, me

相关标签:
回答
  • 消灭零回复
提交回复
热议问题