<p>据我所知,所给的家庭作业是让人们通过<code>network</code>编程参与活动。所以可以看看www.twistedmatrix.com,twisted<br/>
<a href="https://stackoverflow.com/questions/1047306/chat-comet-site-using-python-and-twisted">Chat comet site using python and twisted</a>,<br/>
<a href="http://lists.canonical.org/pipermail/kragen-hacks/2005-April/000409.html" rel="nofollow noreferrer">http://lists.canonical.org/pipermail/kragen-hacks/2005-April/000409.html</a>,<br/>
<a href="http://code.google.com/p/twisted-chat-example/" rel="nofollow noreferrer">http://code.google.com/p/twisted-chat-example/</a>。</p>
<p>这一个使用纯套接字编程<a href="http://code.activestate.com/recipes/531824-chat-server-client-using-selectselect/" rel="nofollow noreferrer">http://code.activestate.com/recipes/531824-chat-server-client-using-selectselect/</a>,<br/>
<a href="http://ankurs.com/2008/05/creating-a-simple-chat-application-with-python/" rel="nofollow noreferrer">http://ankurs.com/2008/05/creating-a-simple-chat-application-with-python/</a>。</p>
<p>这个是基于<a href="http://gpiot.com/a-basic-chat-app-with-django-socket-io/" rel="nofollow noreferrer">gevent</a>。</p>
<p>对于不使用socket编程的简单聊天室模拟,下面是示例<a href="https://github.com/kracekumar/Gummi" rel="nofollow noreferrer">gummi</a>。</p>
<p><a href="http://www.slideshare.net/rick446/realtime-web-gevent-and-socketio" rel="nofollow noreferrer">sourceforge</a>上的真实用例。</p>