def strPaiXu(p): s = '' a = [ord(i) for i in p] #a = list(map(ord,p)) a.sort() p = [chr(i) for i in a] for i in p: s += i return s
本文共 207 字,大约阅读时间需要 1 分钟。
def strPaiXu(p): s = '' a = [ord(i) for i in p] #a = list(map(ord,p)) a.sort() p = [chr(i) for i in a] for i in p: s += i return s
转载于:https://www.cnblogs.com/wumac/p/6246361.html