c# 取右侧固定N个字符,不足用0填充

("0000"+i).Substring(i.ToString().Length)

这是取4个字符,以0填充

原文地址:https://www.cnblogs.com/huanyun/p/15773705.html