xgqfrms™, xgqfrms® : xgqfrms's offical website of cnblogs! xgqfrms™, xgqfrms® : xgqfrms's offical website of GitHub!

Flask

Flask

Python web app framework

https://github.com/pallets/flask

https://palletsprojects.com/p/flask/

pip

https://pip.pypa.io/en/stable/installing/

$ pip install -U pip

$ curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py

$ python get-pip.py

https://pip.pypa.io/en/stable/quickstart/

$ pip install -U Flask

from flask import Flask

app = Flask(__name__)

@app.route("/")
def hello():
    return "Hello, World!"

$ env FLASK_APP=hello.py flask run
 * Serving Flask app "hello"
 * Running on http://127.0.0.1:5000/ (Press CTRL+C to quit)



©xgqfrms 2012-2020

www.cnblogs.com 发布文章使用:只允许注册用户才可以访问!


posted @ 2020-05-25 16:33  xgqfrms  阅读(123)  评论(6编辑  收藏  举报