[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"$f3F3d3a8sjKzUqPHT2ssQvVli2g-LiQsxydBzon_MQR4":3},{"answer":4,"createTime":5,"id":6,"options":7,"origin":11,"question":18,"related":19,"source":29,"type":30},[],"2025-11-11 10:15:28",231881754,[8,9,10],"from index_page import index_page","app.register_blueprint(index_page, url_prefix='\u002F')","index_page = Blueprint('index_page', __name__)",{"count":12,"courseId":13,"courseImg":14,"courseName":15,"workId":16,"workName":17},5,"53e1d2ef4961cca8eea3e23969ad2cb9","https:\u002F\u002Ftihai-oss-cloud.itihey.com\u002Fimg\u002F03a579384a6dc297c89809b582fcc767.png","默认课程","cfdfbca8407c4498b423b39edcb7d613","7.1房源总数显示测验","蓝图定义完之后还需要注册到程序实例中.在house项目的app.py文件中,将刚刚创建的蓝图index_page注册到app中,代码是",[20,31,38,44,47],{"answer":21,"createTime":5,"id":22,"options":23,"question":28,"source":29,"type":30},[],231881751,[24,25,26,27],"①②③④⑤⑥","⑥①③②⑤④","⑥①②④⑤③","①⑥②⑤③④","房源总数展示功能的实现流程为 ①发送请求②查询房源数据③数据展示④返回查询结果⑤渲染数据⑥访问网站","v1",0,{"answer":32,"createTime":5,"id":33,"options":34,"question":37,"source":29,"type":30},[],231881752,[35,36],"POST","GET","设计房源总数接口时,请求方式是",{"answer":39,"createTime":5,"id":40,"options":41,"question":43,"source":29,"type":30},[],231881753,[42,9,10],"from flask import render_template","在后端实现时,在house项目的根目录下新建文件index_page.py,在该文件中创建蓝图,创建蓝图的代码是",{"answer":45,"createTime":5,"id":6,"options":46,"question":18,"source":29,"type":30},[],[8,9,10],{"answer":48,"createTime":5,"id":49,"options":50,"question":54,"source":29,"type":30},[],231881755,[51,52,53],"渲染模版","创建模版","查找数据","为了能够在首页上显示房源总数,使房源总数随着数据库中数据量的变化而变化,这里我们需要将获取的房源总数量插入到模板文件的指定位置.这一过程称为"]