赞
踩
github: https://github.com/huge-success/sanic
使用方式和Flask 基本一致
pip3 install sanic
# -*- coding: utf-8 -*- from sanic import Sanic from sanic.response import text app = Sanic() @app.route('/') async def hello(request): return text("hello sanic") if __name__ == '__main__': app.run(host='0.0.0.0', port=8000)
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。