📜  如何在c#代码示例中查找字符串中的子字符串

📅  最后修改于: 2022-03-11 14:48:39.739000             🧑  作者: Mango

代码示例1
String phrase = "this is the ultimate string";

Console.WriteLine(phrase.Contains("this")); //returns True
Console.WriteLine(phrase.Contains("python")); //returns False