C#中,怎么判断一个字符串包含是否不包含另一个字符串

2025-04-16 05:41:56
推荐回答(1个)
回答1:

str1.Contains(str2);

看看str1里有没有str2,返回bool值