标签:
官网:http://flask.pocoo.org/
安装: pip install flask
helloFlask.py
from flask import Flask app = Flask(__name__) @app.route("/") def hello(): return "Hello Flask!" if __name__ == "__main__": app.run()
运行helloFlask.py: python helloFlask.py
访问:http://localhost:5000/,查看网页显示Hello Flask.
剩下的就专心阅读官方文档吧: http://flask.pocoo.org/docs/0.10/
标签:
原文地址:http://www.cnblogs.com/for-you/p/5150494.html