1.Flask提供的Web服务器不适合在生产环境中使用
2.run方法启动flask集成的服务器:
例:
if __name__ == '__main__':
app.run(debug=True)
3.源码:
def run(self, host='localhost', port=5000, **options):
"""Runs the application on a local development server. If the
:attr:`debug` flag is set the server will automatically reload
for code changes and show a debugger in case