我从How to run an aiohttp server in a thread?上复制了代码。它运行得很好。所以我增加了一秒钟的睡眠。当我同时发起10个请求时。平均响应时间为9秒。难道所有的请求都会在1秒多一点的时间内返回吗?import asynciofrom aiohttp import webserver = loop.creat
我花了一些时间来寻找最好和最快的方法来获得一个巨大的URL列表的状态码,但没有任何进展。下面是我的代码: import multiprocessing """Send request to url and get a HTTPpool.map(check, url_list) print("time: {}".format(done - start)) 然
线程中的aiohttp服务器的此示例失败,并出现RuntimeError: There is no current event loop in thread 'Thread-1'.错误: importthreading
def say_hello(request): app.add_routes([web.get(