About my job, my life...Welcome!
string str="AAA"; str.PadLeft(8, '0'); //左邊補0,結果:00000AAA str.PadRight(8, '0'); //右邊補0,結果:AAA00000
string str = string.Format("{0:00000000}",123); //結果: 00000123
沒有留言:
張貼留言