判断字符串是否含有指定子字符串 -…

来源:互联网 发布:php属于编程语言 编辑:程序博客网 时间:2024/05/18 01:14
public static bool TestOther1()
{
  string s1 = "test";
  string s2 = "ttt";
  if (s1.Contains(s2))
  {
  return true;
  }
  else
  {
  return false;
  }
}
返回false
0 0
原创粉丝点击