C#:实现一个字符串是否为另一个字符串的子字符串 以下是C#代码,用于检查一个字符串是否为另一个字符串的子字符串: string str1 = "Hello World"; string str2 = "World"; if (str1.Contains(str2))