字符串,不足位前位补0

不是数字,是字符串前位补0哦。。就须要下面这个了。不然用format函数便可。函数

string str = svalue.PadLeft(4, '0');orm

相关文章
相关标签/搜索