c#怎么判断一个数组是否含有某个数字答:int[] x = new int[] { 9 ,2,4,1,4,23,8,5,34,3,2,4,3};//初始化数组 ArrayList ar = new ArrayList();//实例化一个ArrayList ar.AddRange(x);//把数组赋到Arraylist对象 Console.WriteLine(ar.Contains(12));//通过Contains判断是否有12 Console.Read();} 记得在头部加上using ...