摘要:
蓝图:from flask import Blueprint 定义蓝图 from flask import Blueprint news_bp = Blueprint('news', __name__) @news_bp.route("/news") def news(): return "新闻首页 阅读全文
posted @ 2021-01-23 17:16
枫叶少年
阅读(72)
评论(0)
推荐(0)
摘要:
Jinja2 模板过滤器: "books":["python", "jiava"], <p>{{ books|first}}</p> <p>{{ books|last}}</p> <p>{{ books|length}}</p> <p>{{ books|first|length}}</p> <p>{ 阅读全文
posted @ 2021-01-23 14:47
枫叶少年
阅读(70)
评论(0)
推荐(0)