数字前如何自动+0判断一个数字的长度,如果不够8位,前面自动+0,如何实现啊?[解决办法]
int num = 1;string result = num.ToString().PadLeft(8, '0');