String str = "ksajdkjfldsj";String subStr = "jdk":if(str.Contains(subStr)){ Console.Write("包含");}else{ Console.Write("不包含");}