摘要: 声明一个接口 type Humaner interface{ SayHello() // 接口中的方法,定义的方法必须实现 } 声明一个结构体 type Human struct{ name string age int addr string } 实现 SayHello 方法 func (h *H 阅读全文
posted @ 2021-02-16 16:17 巫小诗 阅读(57) 评论(0) 推荐(0)