go语言,变量引用的用法 package mainimport "fmt"func main() { //引用变量赋值 var a string afuzhi(&a) fmt.Println(a) fmt.Println("=========================") bianliang()}func afuzhi(b *string) { *b = "ccc" //fmt.Prin go杂记 2024-05-19 42 点赞 0 评论 63 浏览