题解 | #字符串排序# sort()/sorted()
字符串排序
http://www.nowcoder.com/practice/5af18ba2eb45443aa91a11e848aa6723
# sort()/sorted()函数实现
while True:
try:
num=int(input())
stack=[]
for i in range(num):
stack.append(input())
print("\n".join(sorted(stack)))
except:
break
华为机试(python3) 文章被收录于专栏
少壮不努力,老大勤刷题