#先sorted以从小到大的顺序排列,然后reversed倒转变为从大到小输出,后用+ 链接起来print '+'.join(reversed(sorted('891532')))#同上,以字典形式输出print zip('+'.join(reversed(sorted('891532'))))