每天一遍,我爱python。全靠列表的sort函数,太赖皮了
s=input() res=list(s) res.sort() answer='' for j in res: answer+=j print(answer)