string txt = "333,333"; txt.Replace(",", ""); Console.WriteLine("赋值前:" + txt); txt = txt.Replace(",", ""); Console.WriteLine("赋值后:" + txt);