How to sort an array based on two conditions in python

前端 未结 0 454
挽巷
挽巷 2021-02-05 12:38

I have the following array:

[[8, 1], [1, 1], [3, 1], [8, 1], [4, 0], [2, 0]]

How to sort the array based on the first value of the element and if

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