from sanic import Sanic from sanic import response app = Sanic() @app.route('/') async def test(request): return response.text('Hello World!') if __name__ == "__main__": app.config.LOGO = None #关闭启动logo app.config.KEEP_ALIVE = False # 关闭长链接 app.run(debug=True)