The following figure shows the execution process when flask executes app.run(), and the execution flow of __call__ when a request is received. For the execution process of flask's request, please refer to https://blog.csdn.net/DALAOS/ article/details/113566518 request execution process
If you understand that there is a discrepancy, you can privately trust me to discuss the correct process