题解 | #图片整理#
图片整理
http://www.nowcoder.com/practice/2de4127fda5e46858aa85d254af43941
python。字符串排序题。
while True:
try:
a = input()
L = list(a)
L.sort()
print(''.join(L))
except:
break
方法2:sorted 可以对字符串使用。sorted 可以对所有可迭代对象使用。
while True:
try:
print(''.join(sorted(input())))
except:
break
查看5道真题和解析
字节跳动公司福利 1328人发布