题解 | #字符串排序#
字符串排序
https://www.nowcoder.com/practice/5af18ba2eb45443aa91a11e848aa6723
row = int(input()) if row >= 1 and row <= 1000: l = [] for i in range(row): token = input() if len(token) >= 1 and len(token) <= 100: l.append(token) l.sort() for token in l: print(token)