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

String.Format("{0:D5}",16);
or
int i=16;
i.ToString("D5");
Result: 00016
posted on 2011-12-13 17:57  hanshuhe  阅读(195)  评论(0编辑  收藏  举报