摘要:
from selectors import DefaultSelector, EVENT_READ, EVENT_WRITE import socket from types import coroutine from urllib.parse import urlparse @coroutine def until_readable(fileobj): yield fileob... 阅读全文
posted @ 2018-12-15 19:44
wsjhk
阅读(377)
评论(0)
推荐(0)
摘要:
# -*- coding: utf-8 -*- # @Time : 2018/12/15 18:55 # @File : coroutine.py #一个简单的 Coroutine 框架 import socket # on top of TCP import time from selectors import DefaultSelector, EVENT_WRITE,... 阅读全文
posted @ 2018-12-15 19:21
wsjhk
阅读(367)
评论(0)
推荐(0)

浙公网安备 33010602011771号