题解 | #字符串排序#
字符串排序
https://www.nowcoder.com/practice/5af18ba2eb45443aa91a11e848aa6723
n = int(input()) strlist =[] for _ in range(n): strlist.append(input()) res = sorted(strlist) # sorted 使用 for i in res: print(i)
字符串排序
https://www.nowcoder.com/practice/5af18ba2eb45443aa91a11e848aa6723
n = int(input()) strlist =[] for _ in range(n): strlist.append(input()) res = sorted(strlist) # sorted 使用 for i in res: print(i)
相关推荐