1 c# string
如果我有:
string st1 = "this.is.a.string.type"; string st2 = "string";
如果在st1中存在确切的字符序列,是否有内置的String方法从st1中删除st2?所以我想最终得到"this.is.a..type".
ope*_*lar 5
最简单的是:
st1 = st1.Replace(st2, "");
但这不一定非常有效.
归档时间:
15 年 前
查看次数:
4159 次
最近记录: