C#常用方法

左填充0   例如:001

字符串.PadLeft(填充长度, '0');  1.ToString().PadLeft(3, '0');

原文地址:https://www.cnblogs.com/yyl001/p/15066690.html