type Student struct{ name string age int } var stu Student stu.name,stu.age = "张三”,10 stu2 := Student{"李四",20} stu3 := new(Student) //stu3是一个指针