sorted()和operator.itemgetter()小測試

自己學習的小測試,沒有講解,只有代碼測試與運行結果 students = [('aohn', 'A', 2), ('cane', 'B', 12), ('bave', 'C', 10)] #sorted(students, key=lambda student : student[0]) #[('aohn', 'A', 15), ('dave', 'c', 10), ('jane', 'B', 1
相關文章
相關標籤/搜索