题解 | #字符串排序#
字符串排序
https://www.nowcoder.com/practice/5190a1db6f4f4ddb92fd9c365c944584
def lianxi(shuju1):
temp = []
for i in shuju1:
if i.isalpha():
temp.append(i)
temp = sorted(temp, key=str.upper)
for j in range(0, len(shuju1)):
if shuju1[j].isalpha() is False:
temp.insert(j, shuju1[j])
print(*temp, sep='')
if __name__ == '__main__':
shuju1 = input()
lianxi(shuju1)