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)