标签:完成 logs 设置 项目 col alt article 反转 doc
from flask import Flask from flask import render_template app = Flask(__name__) @app.route(‘/‘) def base(): return render_template(‘base.html‘) @app.route(‘/login/‘) def login(): return render_template("login.html") @app.route(‘/regist/‘) def regist(): return render_template("regist.html")
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>test</title> <link rel="stylesheet" type="text/css" href="{{ url_for(‘static‘,filename=‘css/base.css‘) }}"> </head> <body> <a href="{{ url_for(‘base‘) }}">首页</a> <a href="{{ url_for(‘login‘) }}">登录</a> <a href="{{ url_for(‘regist‘) }}">注册</a> </body> </html>
标签:完成 logs 设置 项目 col alt article 反转 doc
原文地址:http://www.cnblogs.com/hegui/p/7776756.html