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