2009年12月18日
摘要: 喜欢python的原因之一就是可以偷懒…… 最近写点小东西,要用到socket服务器和客户端,用Python实现起来非常的方便。 贴点代码 首先:引用必要的包import threadfrom socket import *from time import ctime接下来定义端口号和地址HOST = ''PORT = 8888 #端口号BUFSIZE = 200000 #缓冲区大小ADD = (... 阅读全文
posted @ 2009-12-18 18:26 Hanhongji 阅读(585) 评论(2) 推荐(0) 编辑