go 格式化 int,位数不够0补齐 n := 32 sInt := fmt.Sprintf("%07d", n) 转载于:https://www.cnblogs.com/chunyou128/p/6294247.html