使用 append 和 pop 來加入和取出尾端的元素較快,而使用 insert 和 pop 來插入和取出頭端的元素較慢(因為其他元素都需要挪動一格)。 如果要實作queue,請使用 ...
確定! 回上一頁