from sanic import Sanic from sanic.response import text app = Sanic() @app.route('/') async def index(request): return text("Hello, World!") if __name__ == '__main__': app.run(host='0.0.0.0', port=8000)


上一篇:
下一篇:
切换中文