引用类型
1. 切片slice
2.映射map
3.函数func
4.方法(p *P)func
5.通道channel
值类型
数组
bool
int
string
float
指针类型
nil可以赋值给引用类型和指针类型,不能赋值给值类型会报panic错误