摘要:
线程池: 版本一: 版本二: 1 #!/usr/bin/env python 2 # -*- coding:utf-8 -*- 3 4 import queue 5 import threading 6 import contextlib 7 import time 8 9 StopEvent = 阅读全文
摘要:
翻译成代码如下: 1 web: 2 3 import socket 4 def handle_request(client): 5 buf = client.recv(1024) 6 client.sendall(bytes("HTTP/1.1 201 OK\r\n\r\n","utf8")) 7 阅读全文