导航菜单
首页 >  Flask框架  > GitHub

GitHub

Flask

Flask is a lightweight WSGI web application framework. It is designedto make getting started quick and easy, with the ability to scale up tocomplex applications. It began as a simple wrapper around Werkzeugand Jinja, and has become one of the most popular Python webapplication frameworks.

Flask offers suggestions, but doesn't enforce any dependencies orproject layout. It is up to the developer to choose the tools andlibraries they want to use. There are many extensions provided by thecommunity that make adding new functionality easy.

A Simple Example# save this as app.pyfrom flask import Flaskapp = Flask(__name__)@app.route("/")def hello():return "Hello, World!"$ flask run * Running on http://127.0.0.1:5000/ (Press CTRL+C to quit)Donate

The Pallets organization develops and supports Flask and the librariesit uses. In order to grow the community of contributors and users, andallow the maintainers to devote more time to the projects, pleasedonate today.

相关推荐: