问题
1.The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again.
2. xlrd.biffh.XLRDError: Excel xlsx file; not supported*
解决办法
出现场景:(1)只包含“GET”方法(The method is not allowed for the requested URL)
(2)上传EXcel
(3)网站登录接口
针对问题1
(1)检查自己的路由:login,about不要用,实在要用的话请加上一个数字或其他
(2)@app.route(’/’),只要是自定义的地址都尽量以‘/’结尾
(3)app.run()中的参数要按debug,port,host(注意拼写,本人就因为把port写成了post找了好长时间的错误)
针对问题2
xlrd的模块版本高,无法识别以’.xlsx’结尾的excel表格,只需降低模块的版本即可
才开始接触接口,踩到的坑不少,一坑一坑填!!!!