python Python Flask WSGI路由技术#python #flask #wsgi

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了python Python Flask WSGI路由技术#python #flask #wsgi相关的知识,希望对你有一定的参考价值。

#!/usr/bin/env python3

from flask import Flask
app = Flask(__name__)

@app.route('/run')
def runner():
    '''URL http://localhost:5000/run is bound to runner().'''
    return 'Flask is running! Take that keyboard and run with it!'
if __name__ == '__main__':
    app.debug=True
    app.run()
    app.run(debug=True)

以上是关于python Python Flask WSGI路由技术#python #flask #wsgi的主要内容,如果未能解决你的问题,请参考以下文章