字符串格式化String.Format

//给变量赋值字符串00002
string s = String.Format( “{0:d5}”, 2);
原文地址:https://www.cnblogs.com/zwh1993/p/12626859.html