让演员与gevent http://www.gevent.org, use a Greenlet http://www.gevent.org/gevent.html#greenlet-objects带有嵌入的子类gevent.queue.Queue http://www.gevent.org/gevent.queue.html用作收件箱的实例。要从收件箱中读取消息,只需get() http://www.gevent.org/gevent.queue.html#gevent.queue.Queue.get从队列中。要向演员发送消息,put http://www.gevent.org/gevent.queue.html#gevent.queue.Queue.put它进入该演员的队列。