![QQ截图20180918102853.png](https://static.studygolang.com/180918/e3373ad4f9b3e65983036c941ccde1f6.png)
切片共享底层数据,可以尝试下面代码,根据结果可以判断,fmt.Printf("%p \n",slice) 为切片底层数据的地址
``` golang
slice := []int{10}
slice2 := slice[0:1]
fmt.Println(slice)
fmt.Println(slice2)
fmt.Printf("%p \n",slice)
fmt.Printf("%p \n",&slice)
fmt.Printf("%p \n",slice2)
fmt.Printf("%p \n",&slice2)
```
结果:
[10]
[10]
*0xc042062090*
0xc04205c400
*0xc042062090*
0xc04205c420
#7