摘要: 切片传递问题 question: 什么情况下传递切片,什么情况下传递切片指针,为什么有时候会修改原始副本,有时候又不会呢? type sli []int func main() { slice := []int{1} fmt.Printf("slice: %p\n", slice) change1( 阅读全文
posted @ 2024-08-01 13:08 周公瑾55 阅读(14) 评论(0) 推荐(0)