本文共 63 字,大约阅读时间需要 1 分钟。
当flask在调试模式下时,在main函数中的代码会执行两次
解决方法:关闭调试模式
app.run(debug=False)
转载地址:http://daio.baihongyu.com/