一、问题描述 代码 # post测试 @app.route('/postTest', methods=['post']) def postTest(): return "567" 出错:Method Not Allowed The method is not allowed for the requested URL. 解决:methods增加一个get # post测试 @app.route('/postTest', methods=['get','post']) def postTest(): return "567" 原因: 不太清楚,感觉这样还是没有解决问题的根本>_<