直接字符转列表排序之后再转回字符串 不是更好 strs=list('Ihave1nose2hands10fingers') strs.sort() strs=''.join(strs) print(strs)
点赞

相关推荐

牛客网
牛客网在线编程
牛客网题解
牛客企业服务