题解 | #字符串排序#
字符串排序
http://www.nowcoder.com/practice/5190a1db6f4f4ddb92fd9c365c944584
while True:
try:
str_words = input()
a= ''
for word in str_words:
if word.isalpha():
a+=word
b= sorted(a, key=str.upper)
s=''
t=0
for word in str_words:
if word.isalpha():
s+=b[t]
t+=1
else:
s+=word
print(s)
except:
break