1. int类型
var a int = 123
var a int8 = 123
var a int16 = 123
var a int32 = 123
2.float类型,不定义默认为64的
var b float32 = 1.1222221 //32和64位数申请的内存不一样
var b float64= 1.1222221
3.字符串类型
var c string = “hello”
4.数组
var a = []int{1,2,3}
5.二维数组
var a =[][2]int{{1,2},{3,4}}