摘要: 1 list里面所有要符合条件 bool result = true; for(int i=0;i<list.Count;i++){ result &= (list[i]==0); //可以这样写 //bool flag =(list[i]==0); //result=result&flag}if( 阅读全文