python:实现删除关键字中重复的字母字符算法 def remove_duplicates(key: str) -> str: key_no_dups = "" for ch in key: if ch ==