去除字符串中重复字符,并按字符在原字符串中的出现顺序输出。平均代码量五行
listl = list(input()) lists = list(set(listl)) lists.sort(key=listl.index) print(lists)