牛客网HJ14 字符串排序Python3解法
题目:示例一:9captocatcardtwotooupboatboot输出:boatbootcapcardcattotootwoup解题方法:n = int(input())li = []# 循环接收n个字符串,并添加到列表li里for i in range(n): li.append(input()) # 将列表li重新排序,并依次输出for i in sorted(li): print(i)...