日期:2014-05-17 浏览次数:20946 次
int a = 123456789; string A = a.ToString(); for (int i = a.ToString().Length - 3; i>0; i-=3) { A=A.ToString().Insert(i,","); } Console.WriteLine(A);