python sort函数秒杀

图片整理

http://www.nowcoder.com/questionTerminal/2de4127fda5e46858aa85d254af43941

if name == 'main':
while True:
try:
s = raw_input()
list = sorted(s)
strs = ''
for i in range(len(list)):
strs= strs+list[i]
print strs
except:
break

全部评论

相关推荐

1 1 评论
分享
牛客网
牛客企业服务