字符串格式化String.Format

 

//给变量赋值字符串00002
string s = String.Format( “{0:d5}”, 2);

 

posted @ 2020-04-03 15:39  橘子香气  阅读(240)  评论(0)    收藏  举报