Sort list of tuple based on the first element and then second element

后端 未结 0 993
猫巷女王i
猫巷女王i 2020-12-05 02:15

I want to sort list of tuples, firstly based on first element and then based on 2n element. Assume unsorted list is unsorted = [(1,3),(1,2),(1,5),(0,4),(0,1),(0,6),(1,

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