string test ="测试一下关键字";
if(test.Contains("一下")){
//包含指定字符
}
else{
//不包含指定字符
}
C# String字符串中是否包含指定字符 关键字查找
猜你喜欢
转载自blog.csdn.net/Liu_ChangC/article/details/119865621
今日推荐
周排行