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

String.Format("{0:D5}",16);
or
int i=16;
i.ToString("D5");
Result: 00016
原文地址:https://www.cnblogs.com/hanshuhe/p/2286610.html