12 2018 档案

摘要: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 阅读(374) 评论(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 阅读(361) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示