flask学习记录

 1.if __name__ == '__main__': server.run(debug=True, port=8889, host='0.0.0.0') debug=True的模式,修改和增加代码可以不重启flask服务,可以直接使用 host='0.0.0.0'使用127.xxx或使用localhost或使用手机都可以访问, host='127.0.0.1'只能使用localhost访问
相关文章
相关标签/搜索