1 windows/unix得安装
http://www.pythondoc.com/flask-mega-tutorial/helloworld.html
http://www.pythondoc.com/flask/
2 第一个永远得helloword
1 from flask import Flask 2 3 app = Flask(__name__) 4 5 @app.rout(‘/‘,methods=[‘GET‘,‘POST‘]) 6 7 def hello(): 8 return "hello world" 9 10 if __name==‘__main__‘: 11 app.run()
然后浏览器 http://127.0.0.1:5000默认打开5000端口