C#数组去掉重复的元素 static string[] DelRepeatData(string[] a) { return a.GroupBy(p => p).Select(p => p.Key).ToArray(); } 只有不断学习,才可进步。