题解 | #字符串排序#
字符串排序
https://www.nowcoder.com/practice/5af18ba2eb45443aa91a11e848aa6723
import sys #for line in sys.stdin: # a = line.split() # print(int(a[0]) + int(a[1])) n = int(input()) i=1 L=[] while i<=n: L.append(input()) i+=1 #利用Python自带的sort函数进行排序即可 L.sort() for x in L: print(x)