c#中前面不足位数补零的方法

String.Format("{0:D5}",3);
or 3.ToString("D5");
Result: 00003
原文地址:https://www.cnblogs.com/vagerent/p/906954.html