Make great things

What I cannot create, I do not understand.

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理
from flask import Flask
app = Flask(__name__)

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

if __name__ == "__main__":
    app.run()

运行此脚本,浏览器中输入localhost:5000 就可以看到结果,so easy。

基础

  • Route
  • Template
  • Request
  • Redirect & Error
  • Response
  • Session
  • Flash
  • Debug

高级

  • Signal
  • View
  • Context
  • Blueprint
  • Extension

其他

posted on 2014-07-06 21:22  wbin91  阅读(290)  评论(0)    收藏  举报