1、常用package package main import ( "fmt" "reflect" )
2、%v 占位符
fmt.Printf("我是亚当,身高 %v 米,体重 %v 吨。", height, weight) fmt.Println(reflect.TypeOf(height), reflect.TypeOf(weight))