阅读背景:

动态添加到Python asyncio的事件循环应该执行的列表中

来源:互联网 

I've got a function download_all that iterates through a hardcoded list of pages to download them all in sequence. But if I'd like to dynamically add to the list based on the results of a page, how can I do it? For example download the first page, parse it, and based on the results add others to the event loop.I've got a function download_all that iterates




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: