一切福田,不離方寸,從心而覓,感無不通。
补位
string str = "100";
str.PadLeft(5,’0′)
输出:00100
str.PadRight(5, '0')
输出:10000
from:https://www.cnblogs.com/daviddong/p/5949794.html
Copyright © 2024 Longsheng All rights reserved