题解 | #字符串排序#
字符串排序
http://www.nowcoder.com/practice/5af18ba2eb45443aa91a11e848aa6723
n = int(input()) #提供多组数据的读取 str1=[] while n >0: str1.append(input().strip()) n-=1 str1.sort() for i in str1: print(i)
字符串排序
http://www.nowcoder.com/practice/5af18ba2eb45443aa91a11e848aa6723
n = int(input()) #提供多组数据的读取 str1=[] while n >0: str1.append(input().strip()) n-=1 str1.sort() for i in str1: print(i)
相关推荐
查看14道真题和解析