2种方法实现数字字符串的左补齐0
int n = 3;
string s = n.ToString().PadLeft(4, '0'); //0003
s = string.Format("{0:d4}", n); //0003