题解 | #字符串排序#
字符串排序
https://www.nowcoder.com/practice/5190a1db6f4f4ddb92fd9c365c944584
text = input()
s = ''
for i in text:
if i.isalpha():
s += i
s = sorted(s,key=str.upper)
b = ''
index = 0
for i in range(len(text)):
if text[i].isalpha():
b += s[index]
index += 1
else:
b += text[i]
print(b)
