建设品牌型网站,上海最近发生什么大事,南宁制作企业网站,吉安seo招聘原文#xff1a;https://www.coder.work/article/2958674 列表#xff1a; 一个数组列表#xff0c;想检查一个确切的数组是否在列表中 Listint[] Output new Listint[](); 有一个数组 int[] coordinates 想检查coordinates 数组是否在Output 列表中…原文https://www.coder.work/article/2958674 列表 一个数组列表想检查一个确切的数组是否在列表中 Listint[] Output new Listint[](); 有一个数组 int[] coordinates 想检查coordinates 数组是否在Output 列表中 最佳答案 使用SequenceEqual bool result Output.Any(a a.SequenceEqual(coordinates)); 字典获取 Dictionaryint[], string[] testDic new Dictionaryint[], string[]();int[] t { 1, 2 };//找到keyint[] key testDic.Keys.Where(x x.SequenceEqual(t)).FirstOrDefault();if (key ! null){ //对应的valuestring[] value_Instruction testDic[key];}