直接利用string.Contains方法,如string txt="the world";可以利用bool result=txt.Contains("world"); //如果result=true,则包含,否则不包含