如何从字符串中删除所有重复的字符?
例如:
Input: string = 'Hello' Output: 'Heo'
与从字符串中删除重复字符不同的问题,因为我不想打印出重复项,但我想删除它们。
python list python-3.x
list ×1
python ×1
python-3.x ×1