擅长:python、mysql、java
<p>您应该使用<a href="http://docs.python.org/2/library/socket.html" rel="nofollow">socket module</a>。<a href="http://docs.python.org/2/library/socket.html#example" rel="nofollow">Example programs</a>。使用socket并不难,基本上服务器端必须<code>bind()</code>,<code>listen()</code>,然后{<cd3>},而客户机只需<code>connect()</code>。从那里,<code>recv()</code>和{<cd6>}可分别用于接收和发送数据。如果您真的不想使用<code>socket</code>,那么可以使用<a href="http://en.wikipedia.org/wiki/Internet_Relay_Chat" rel="nofollow">IRC</a>或{a4}之类的聊天协议。在</p>