You can use a deque object, which functions as both - check the docs for the functions it supports, and how to use it as a queue or stack.
確定! 回上一頁