A key can be a function that returns a tuple: s = sorted(s, key = lambda x: (x[1], x[2])). Or you can achieve the same using itemgetter (which is faster and ...
確定! 回上一頁