擅长:python、mysql、java
<p>文档明确声明队列是线程安全的:</p>
<blockquote>
<p>The Queue module implements multi-producer, multi-consumer queues. It
is especially useful in threaded programming when information must be
exchanged safely between multiple threads.</p>
</blockquote>
<p><a href="https://docs.python.org/2/library/queue.html" rel="nofollow">https://docs.python.org/2/library/queue.html</a></p>