110,567
社区成员
发帖
与我相关
我的任务
分享
string str1 = "abcdef";
string str2 = "abc";
if (str1.Contains(str2))
{
Console.Write("abc");
}
else
{
Console.Write("def");
}
string str1 = "abcdef";
string str2 = "abc";
if (str1.Contains(str2))
{
//执行一个批处理文件
}
else
{
//执行另一个批处理
}