How to sort a list of tuple or list in Python -- lambda or itemgetter?

📝

内容提要

In Python, when we want to sort a list of tuples or lists, we may want to sort it based on certain element in each sub-list, for example, sort the list based on the first element in each sub-list.

🏷️

标签

➡️

继续阅读