摘要: Golang基础进阶——结构体 结构体(struct) 定义结构体 type 类型名 struct { 字段1 字段1 类型 字段2 字段2 类型 } 示例: func main() { var s1 = Student{1, "zs", 'f', 18, "sh"} fmt.Println(s1) 阅读全文
posted @ 2020-04-29 14:07 Wshile 阅读(239) 评论(0) 推荐(0) 编辑