string txt = "333,333";
txt.Replace(",", "");
Console.WriteLine("赋值前:" + txt);
txt = txt.Replace(",", "");
Console.WriteLine("赋值后:" + txt);
c#Replace用法
最新推荐文章于 2024-03-06 14:11:08 发布
string txt = "333,333";
txt.Replace(",", "");
Console.WriteLine("赋值前:" + txt);
txt = txt.Replace(",", "");
Console.WriteLine("赋值后:" + txt);