Код: Выделить всё
import asyncio
async def f():
await exec('x = 1\n' 'await asyncio.sleep(x)')
Как этого можно достичь?
Подробнее здесь: https://stackoverflow.com/questions/448 ... -in-python
Код: Выделить всё
import asyncio
async def f():
await exec('x = 1\n' 'await asyncio.sleep(x)')