C#中怎么判断一个数组中是否存在某个数组值

2025-04-23 20:18:59
推荐回答(2个)
回答1:

foreach(string str in array)
if(str=="某个值")
return true;

回答2:

直接输出不可以吗