Use the `key` argument of the `sorted()` function to sort a list of tuples by the second element, e.g. `sorted_list = sorted(list_of_tuples, key=lambda t: ...
確定! 回上一頁