根据aiohttp提供的官方文档,自己尝试了一下官方提供的代码:# main.pyfrom aiohttp import webasync def index(request):
return Response(text='hello')
app = web.Application()
app.add_routes([web.get('/', index)])
web.run_app(app)运行这个py文件后,根据提示进入“http://localhost:8080”,然而网页提示“无法访问此网站”,我是在win10系统下运行。请问这是什么原因?
添加回答
举报
0/150
提交
取消