页首html;

001-wsgi找源码--Flask执行本质

溯源

from werkzeug.serving import run_simple
from flask import Response

def func(environ, start_response):
    print('请求来了')
    response = Response('你好')
    return response(environ, start_response)

if __name__ == '__main__':
    run_simple('localhost', 5000, func)
View Code

 

posted @ 2024-09-02 20:53  szd426  阅读(13)  评论(0)    收藏  举报
页脚html;