【发布时间】:2017-12-26 06:55:17
【问题描述】:
我在aiohttp 和python-3.6 上有HTTP 服务器。如何通过 JSON(来自 dict)返回 web.Response()?
async def api_server(request):
res = {"q": "qqq", "a": "aaa"}
return web.Response(res) # <-- as JSON
【问题讨论】:
标签: python-3.6 python json python-3.x aiohttp