-----------------------------
package main
import "fmt"
func main() {
var i int
var f float64
var b bool
var s string
fmt.Printf("%v %v %v %q\n", i, f, b, s)
}
-------------------------
输出为:
0 0 false ""
-----------------------
而
package main
import (
"fmt"
)
func main() {
var i int
var f float64
var b bool
var s string
fmt.Println("%v %v %v %q", i, f, b, s)
}
--------------
输出为:
%v %v %v %q 0 0 false
子衿沉夜