- in python, what's the difference between list.sort() and sorted()
- what other advantages can i gain using sorted()
- in the above example, how can i improve the
key=lambda person: person.age
? - maybe use some tool from the operator library?
- can you compare the performance of using lambda and attrgetter?
- i need to sort a list of tuples with 2 elements each, ordered by the first element.
- what if i want to reverse the order?
- in python, what's the difference between list.sort() and sorted()
- what other advantages can i gain using sorted()
- can we use some tool from the operator library as key
- 请给我一个sorted链式调用的例子
- 比较一下lambda和attrgetter的性能表现
- give me an example showing that list.sort() is not stable