You basically have it already: >>> mylist = [["quux", 1, "a"], ["bar", 0, "b"]] >>> mylist.sort(key=lambda x: x[1]) >>> print mylist. gives:
確定! 回上一頁