slice 写不动了先空着。 简而言之 slice 就是能一下子定义一组变量,中文名叫「切片」。 比如一个班的学生可以这样写: var studentsOfOneClass []Student // 用了前面定义的 Student 类型 (很像 python 的列表)。