string[] s = new string[4] {"111","222","333" ,"444"};
            string s1 = "3335";
            //判断字符串的前几位在另一个字符串数组中第一次出现的索引位置
            index = Array.IndexOf(s, s1.Substring(0, 2));

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-01-27
  • 2022-12-23
  • 2021-10-03
  • 2022-12-23
  • 2021-04-08
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-12-28
  • 2022-12-23
  • 2021-07-16
  • 2021-11-17
  • 2022-12-23
相关资源
相似解决方案