当我输入/login
为 url 时,它会出错
例如:
from flask import Flask ,url_for,render_template,request
app = Flask(__name__)
@app.route('/login')
def index():
return "index"
if __name__== "__main__":
app.run()
错误原来是这样的:
Not Found.
The requested URL was not found on the server.
当我/login
用/login/
或任何其他词替换时/log
,它会没事的。这是怎么发生的?