点击运行
package main import ( "fmt" ) func main() { b := 255 a := &b fmt.Println("b 的地址是:", a) fmt.Println("b 的值是:", *a) }
运行结果 :
正在执行...