摘要:
from gevent import monkey;monkey.patch_all() from socket import * import gevent def sever(ipport): s = socket(AF_INET,SOCK_STREAM) s.setsockopt(SOL_SO 阅读全文
摘要:
from gevent import monkey;monkey.patch_all()#打补丁,使gevent识别I/O阻塞进而实现协程 import requests,re,gevent,time def get_info(url):#爬网页函数 res = requests.get(url) 阅读全文