在Python 中若要對list 中的元素進行排序,有兩種方式,一種是使用 sorted ,他會對 ... 依照第三個數字元素排序 scores.sort(key = lambda s: s[2]) print(scores)
確定! 回上一頁