go 格式化输出

package main

import "fmt"

func main() {
	fmt.Println(1, 2, "abc:%t", true)
	fmt.Printf("format print:%s %t\n", "aaa", true)
}

1 2 abc:%t true
format print:aaa true

猜你喜欢

转载自xiangjie88.iteye.com/blog/2383324