字符串不能排序 先转换为列表然后sort排序然后最后join转换为字符串
收起
x = input() y = x.split(' ') y.sort() sep = ' ' newx = sep.join(y) print(newx)
报告相同问题?