摘要:
线程queue介绍 Queue的种类: FIFO: Queue.Queue(maxsize=0) FIFO即First in First Out,先进先出。Queue提供了一个基本的FIFO容器,使用方法很简单,maxsize是个整数,指明了队列中能存放的数据个数的上限。一旦达到上限,插入会导致阻塞 阅读全文
摘要:
SocketServer类介绍 The socketserver module simplifies the task of writing network servers. socketserver一共有这么几种类型 This uses the Internet TCP protocol, whi 阅读全文
摘要:
socket函数介绍 socket.socket(family=AF_INET, type=SOCK_STREAM, proto=0, fileno=None) Create a new socket using the given address family, socket type and p 阅读全文