會得到結果為[1, 5, 2, 4, 8, 3]. 二維排序-由小到大. num = [['Q', 5, 8, 4], ['A', 8, 7, 4], ['B', 4, 5, 7], ['D', 7, 8, 5]]. num.sort(key=lambda x:x[1]).
確定! 回上一頁