循环数组值不重复问题如:[1,1,1,2,2,3,3,3,]我想用循环读出里面的数字,并且每个数字只取一次。不重复循环.结果要:1 2 3[解决办法] int[] temp=new int[]{1,1,1,2,2,3,3,3}; temp.Distinct().ToList().ForEach(t=>Console.WriteLine(t));