1.错误类型是【invalid syntax】,代表语法错误
2.Python中aiohttp模拟服务器报错:DeprecationWarning: loop argument is deprecated
解决方法:
app = web.Application(loop=loop)改成:app = web.Application()
srv = await loop.create_server(app.make_handler(), '127.0.0.1', 8000)改成:
srv = await loop.create_server(app(), '127.0.0.1', 9000)
网友评论