题目描述
输入一个非空字符串,去除重复的字符后,从小到大排序输出为一个新字符串。
输入
一个非空字符串
输出
去重排序后的字符串
样例输入 复制
Life is short, you need Python!
样例输出 复制
!,LPdefhinorstuy
来源/分类
afr=input()
ccc=set(afr)
ccc1=list(ccc)
ccc1.sort(reverse=False)
ccc2="".join(ccc1)
print(ccc2)
题目描述
输入一个非空字符串,去除重复的字符后,从小到大排序输出为一个新字符串。
输入
一个非空字符串
输出
去重排序后的字符串
样例输入 复制
Life is short, you need Python!
样例输出 复制
!,LPdefhinorstuy
来源/分类
afr=input()
ccc=set(afr)
ccc1=list(ccc)
ccc1.sort(reverse=False)
ccc2="".join(ccc1)
print(ccc2)