📅  最后修改于: 2022-03-11 14:48:52.841000             🧑  作者: Mango
public string strOne = "Hello World";
public string strTwo = " World";
public void DeleteStrTwoFromStrOne()
{
strOne = strOne.Replace(strTwo, ""); //strOne = "Hello" now
}