https://icinfra.cn/posts/double-queue-in-python/
Python的双端队列 - IC Infra