摘要: 1、继承 package main import "fmt" //定义一个Person类 type Person struct { id int name string age int } //分别定义Student与Teacher类,继承Person type Student struct { / 阅读全文