摘要: 本篇文章将会使用数据结构中的栈和队列来实现音乐播放器的音乐添加和删除功能,分别使用切片和链表实现它。 1. 栈的链表实现 1.1 音乐添加 type song struct { value interface{} next *song } type Stack struct { top *song 阅读全文
posted @ 2021-04-11 17:28 lubanseven 阅读(84) 评论(0) 推荐(0) 编辑