def remove_duplicate_characters(string): new_string = "" for char in string: if char not in new_string: new_string += char return new_string
时间: 2023-02-18 11:35:09 浏览: 78
RemoveDuplicateFromString
答案:返回一个字符串,其中不包含重复字符:"new_string = "",for char in string:if char not in new_string:new_string = char;return new_string"
阅读全文