C#:实现字符串中删除重复的字符 string RemoveDuplicateChars(string str) { //创建一个HashSet存储已经出现过的字符 HashSet<char> set = new