修改http_charfinder.py使能在python311环境中运行需要修改两个函数,第一个是init函数,修改如下: async def init(loop, address, port): # <1> # app = web.Application(loop=loop) # <2> # app.router.add_route('GET', '/', home) # <3> app = web.Application() # <2> app.add_routes([web.get('/', home)]) # handler = app.make_handler()