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(result)
{
所有条件都满足
}
2 list里面有一个符合条件
for(int i=0;i<list.Count;i++)
{
if(list[i]==0)
{
所有条件都满足
}
}