Flask 简明教程

Flask Tutorial

Flask 是用 Python 编写的 Web 应用程序框架。它是由阿明·罗纳切领导的国际 Python 爱好者团队 Pocco 开发的。Flask 基于 Werkzeug WSGI 工具包和 Jinja2 模板引擎。这两个都是 Pocco 项目。

Flask is a web application framework written in Python. Armin Ronacher, who leads an international group of Python enthusiasts named Pocco, develops it. Flask is based on Werkzeug WSGI toolkit and Jinja2 template engine. Both are Pocco projects.

Audience

本教程面向对 Python 有基本了解并渴望开发网站的任何人。在完成本教程后,您将在使用 Flask 开发网站方面达到中等专业水平。

This tutorial has been prepared for anyone who has a basic knowledge of Python and has an urge to develop websites. After completing this tutorial, you will find yourself at a moderate level of expertise in developing websites using Flask.

Prerequisites

在开始本教程之前,我们假设您对 HTML 和 Python 有实践经验。如果您对这些概念不熟悉,我们建议您阅读我们关于 HTML 和 Python 的简短教程。

Before you start proceeding with this tutorial, we are assuming that you have hands-on experience on HTML and Python. If you are not well aware of these concepts, then we will suggest you to go through our short tutorials on HTML and Python.