文章
6
粉丝
79
获赞
0
访问
3.1k
1255 AC:
while True:
try:
sentence = input()
letters = ""
for char in sentence:
if char.isalpha():
letters += char
sort_letters = sorted(letters,key = lambda x:x.lower())
result = ""
for c in sentence:
if c.isalpha():
result += sort_letters.pop(0)
else:
result += c
print(result)
except:
break
登录后发布评论
暂无评论,来抢沙发