指针是存储另一个变量的内存地址的变量。 指针的声明 func main() {a := 255b := &afmt.Println(b)fmt.Println(*b) } & 操作符获取一个变量的指针地址。* 操作符获取指针地址的值。程序的输出为: 0xc00000a0d8 255