摘要: (1) 第一种方法: int[] ia = {1,2,3}; int id = Array.IndexOf(ia,1); // 这里的1就是你要查找的值 if(id 1) // 不存在 else // 存在 (2) 第二种方法: string[] strArr = {"a","b","c","d", 阅读全文
posted @ 2021-12-21 10:48 James·wang 阅读(929) 评论(0) 推荐(0)