003《Python数据分析、挖掘与可视化(第2版)》/例3-6.py
text = input('请输入一个字符串:')
result = ''.join(sorted(set(text), key=lambda ch: text.index(ch)))
print(result)