常见字符串 操作

“值字符串”.PadLeft(“设定长度的字符串”, '0')   

例如:“12”.PadLeft(“0001”, '0')       值为:0012

 

posted @ 2020-09-27 17:41  乌柒柒  阅读(103)  评论(0编辑  收藏  举报