![]() | 1 linw1995 2021-01-27 18:49:52 +08:00 问问题用 gist 展示代码是美德。 |
![]() | 2 tanranran 2021-01-27 18:1:22 +08:00 问问题用 gist 展示代码是美德。 |
![]() | 3 linw1995 2021-01-27 18:52:40 +08:00 `async with await s.get(url) as response:` 这行写错了吧,光 async with 就好了 |
![]() | 4 dongcheng OP @linw1995 这么写没报错。不过我发现原因貌似在,semaphore = asyncio.Semaphore(10*multiprocessing.cpu_count()) |
![]() | 5 dongcheng OP semaphore 这个值好像不能随便填 |
![]() | 6 LeeReamond 2021-01-27 19:36:35 +08:00 问问题用 gist 展示代码是美德。 |
7 qbqbqbqb 2021-01-28 00:14:05 +08:00 |
9 deplives 2021-01-28 17:56:54 +08:00 一个靠缩紧区分代码块的语言你给我一把梭的顶头写,你给谁看呢 |