slice

slice的三个属性:指针,长度,容量

append([]Type, Type)

copy(dst []Type, src []Type)

slice可以实现栈

posted @ 2018-07-14 15:01  一片湖海  阅读(197)  评论(0编辑  收藏  举报