输入一个正整数,输出其各位数字重排后最大整数例输入2017 输出7210
只要使用for循环就行了是吗
a=input() b=list(a) b.sort() for i in b[::-1]: print(i,end='')