摘要:
败给了python的elif:是elif,elif,elif,而不是elseif:if 判断条件1: 执行语句1…… elif 判断条件2: 执行语句2…… elif 判断条件3: 执行语句3…… else: 执行语句4…… 阅读全文
摘要:
一个视图函数可以对应多个修饰器: @app.route('/')@app.route('/index.html')def index(): return render_template('index.html') 备注: 服务器端APP需要使用路由地址,如何获得呢? @app.route('/pos 阅读全文