题解 | #图片整理#
图片整理
http://www.nowcoder.com/practice/2de4127fda5e46858aa85d254af43941
oh no
import sys
str_1 = input()
nums=''
alpha=''
upper=''
for i in str_1:
if i.isnumeric():
nums += i
elif i.isalpha():
if i.isupper():
upper+=i
else:
alpha+=i
nums=''.join(sorted(list(nums)))
alpha=''.join(sorted(list(alpha)))
upper=''.join(sorted(list(upper)))
print(nums+upper+alpha)