strict_slashes
=None # URL最后的 / 符号是否严格要求

例如:
@app.route('/index',strict_slashes=False) #访问 http://www.xx.com/index/ 或 http://www.xx.com/index均可
@app.route('/index',strict_slashes=True) #//www.xx.com/index 
 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-01-05
  • 2022-12-23
  • 2021-07-11
  • 2022-03-08
  • 2022-12-23
猜你喜欢
  • 2021-08-31
  • 2021-06-20
  • 2021-12-03
  • 2021-11-15
  • 2021-09-23
  • 2022-12-23
相关资源
相似解决方案