把Int值格式化为right-align定长的字符串:
int i = 40; string s = i.ToString().PadLeft(3,‘0‘); //s="040"
字符串格式化
原文:http://www.cnblogs.com/liao-hua/p/3985156.html