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