我aiohttp网络服务器共享状态使用随时间变化的全局变量: UnboundLocalError: local variable 'shared_item' referenced before assignment 我将如何正确使用共享变量shared_item: from aiohttp import web
shared_item = 'bla'
async def handle(r
我想,只要我收到请求响应用户,然后继续将数据保存到数据库 async def index(request):
data = await request.post()
response.write("done")
async with request.app.mysqlpool.acquire() as conn:
async with conn.curso