Pythonstr [Python] str 先比較 len 再比較 Lexicographic Order 2023/07/30 A1go min(..., key=lambda s: (len(s), s)) Ref: Lexicographic Order Last Updated on 2023/08/16 by A1go