package main
import "fmt"
func main() {
fmt.Printf("%-40s\t%s\n","aaaaaaaaaaaaaaaaaa","a")
fmt.Printf("%-40s\t%s\n","bb","b")
}
标签:%-,fmt,golang,40s,Printf,Go,对齐,t% From: https://blog.51cto.com/u_15828115/5754023
package main
import "fmt"
func main() {
fmt.Printf("%-40s\t%s\n","aaaaaaaaaaaaaaaaaa","a")
fmt.Printf("%-40s\t%s\n","bb","b")
}
标签:%-,fmt,golang,40s,Printf,Go,对齐,t% From: https://blog.51cto.com/u_15828115/5754023