2.數字補0 string str = string.Format("{0:00000000}",123); //結果: 00000123 string.Format可以使用許多格式,無論是小數點位數還是貨幣格式…等.
確定! 回上一頁