代码
package main
import (
"fmt"
)
func main() {
var age_1 uint8 = 31
var age_2 = 32
age_3 := 33
fmt.Println(age_1, age_2, age_3)
var age_4, age_5, age_6 int = 31, 32, 33
fmt.Println(age_4, age_5, age_6)
var name_1, age_7 = "Tom", 30
fmt.Println(name_1, age_7)
name_2, is_boy, height := "Jay", true, 180.66
fmt.Println(name_2, is_boy, height)
name_22, is_boy2, height2 := "Jay", true, 180.66
fmt.Println(name_22, is_boy2, height2)
}
输出
31 32 33
31 32 33
Tom 30
Jay true 180.66
Jay true 180.66