开发者社区 问答 正文

Python的app.run(host, port, debug, options)是什么意思?

Python的app.run(host, port, debug, options)是什么意思?

展开
收起
游客fbdr25iajcjto 2021-11-05 16:00:26 1689 分享 版权
1 条回答
写回答
取消 提交回答
  • host:要监听的主机名。 默认为127.0.0.1(localhost)。设置为“0.0.0.0”以使服务器在外部可用 port :默认值为5000 debug:默认为false。 如果设置为true,则提供调试信息,可以自动重载代码并显示调试信息 options:要转发到底层的Werkzeug服务器。

    2021-11-05 16:01:02
    赞同 展开评论
问答分类:
问答地址: