1. 点击 call 进入到源码

2. 找到 call 方法 return 执行的是 wsgi方法

3. 点击 wsgi 方法 进到 wsgi return 执行的是 response 方法

4. 点击response 方法 进到 full_dispatch_request

5. full_dispatch_request 执行finalize_request 方法
6. finalize_request 执行response 方法

7. 进到 make_response 方法 执行 rv

8. rv 执行 Response Response 在wrappers.py 中 继承 ResponseBase

9. call 中的wsgi方法 就等同于
werkzeug.wrappers 的 Response
10. run 方法 执行的是 run_simple
11. 因此可以得出
python
from werkzeug.serving import run_simple
from werkzeug.wrappers import Response
def app(environ, start_response):
print("请求执行")
response = Response("你好")
return response(environ, start_response)
if __name__ == '__main__':
run_simple('127.0.0.1', 5000, app)
12. 点击链接进入浏览器
13. 浏览器显示
