题解 | #字符串排序#
字符串排序
http://www.nowcoder.com/practice/5af18ba2eb45443aa91a11e848aa6723
#加入列表后排序 while True: try: numStr = int(input()) cur = 0 list1 = [] while(cur < numStr): list1.append(input()) cur += 1 list1.sort() for i in list1: print(i) except: break