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 发布文章使用:只允许注册用户才可以访问!
本文首发于博客园,作者:xgqfrms,原文链接:https://www.cnblogs.com/xgqfrms/p/12957662.html
未经授权禁止转载,违者必究!