回答編集履歴

1

追記

2018/11/11 03:12

投稿

LouiS0616
LouiS0616

スコア35660

test CHANGED
@@ -61,3 +61,17 @@
61
61
  文字列の比較については、ここに解説があります。
62
62
 
63
63
  [Python チュートリアル » 5.8. シーケンスとその他の型の比較](https://docs.python.org/ja/3.6/tutorial/datastructures.html#comparing-sequences-and-other-types)
64
+
65
+ > シーケンスオブジェクトは同じシーケンス型の他のオブジェクトと比較できます。比較には 辞書的な (lexicographical) 順序が用いられます。
66
+
67
+
68
+
69
+ ただし、ここでの『辞書的順序』は文字コード順を指すことに注意は必要です。
70
+
71
+ ```Python
72
+
73
+ >>> sorted(['abc', 'def', 'DEF'])
74
+
75
+ ['DEF', 'abc', 'def']
76
+
77
+ ```