📜  排序 lexo python 代码示例

📅  最后修改于: 2022-03-11 14:46:42.492000             🧑  作者: Mango

代码示例1
#code
def sortlexo(n):
    w = []
    for i in n:
        w.append(i)
    
    w.sort
    w = w[::-1]
    for i in w:
        print(i,end = "")
for i in range(int(input())):
    n= input()
    sortlexo(n)