摘要: # coding: utf-8import socket# 定义一个消息列表messages = ['This is the message ', 'It will be sent ', 'in parts ', ]# 定义一个元祖,指定想要连接的服务端。server_address = ('loc 阅读全文
posted @ 2020-12-01 22:47 月为暮 阅读(193) 评论(0) 推荐(0) 编辑
摘要: # can_read, can_write, _ = select.select(inputs, outputs, None, None)## 第一个参数是我们需要监听可读的套接字, 第二个参数是我们需要监听可写的套接字, 第三个参数使我们需要监听异常的套接字, 第四个则是时间限制设置.## 如果监 阅读全文
posted @ 2020-12-01 22:46 月为暮 阅读(270) 评论(0) 推荐(0) 编辑