2015年10月14日

2种方法实现数字字符串的左补齐0

摘要: int temp = 1110; Console.WriteLine(temp.ToString().PadLeft(6, '0')); //001110 Console.WriteLine(string.Format("{0:d6}", temp));... 阅读全文

posted @ 2015-10-14 11:59 编程笑笑生 阅读(645) 评论(0) 推荐(0) 编辑

导航