Call async function in generator got “TypeError: 'async_generator' object is not iterable”?

前端 未结 0 661
无人及你
无人及你 2020-12-06 09:20

The following code got the error of TypeError: \'async_generator\' object is not iterable

async def f(i):
    return i*10, i*100

l2 = [1,2,3]
[x         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题