我想按字典順序將字符串排序為str ='aAaBbcCdE'到['A','a','a','B','b','C' ... s='aAaBbcCdE' sorted(s, lambda x,y: cmp(x.lower(), y.lower()) or cmp(x,y)).
確定! 回上一頁