[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"$f-RNWxZ0-lXz3kj4SGU6tKaV06Zv7yyj-9DyXWvfBvlg":3},{"answer":4,"createTime":5,"id":6,"options":7,"origin":12,"question":19,"related":20,"source":24,"type":25},[],"2025-11-11 10:15:28",231881751,[8,9,10,11],"①②③④⑤⑥","⑥①③②⑤④","⑥①②④⑤③","①⑥②⑤③④",{"count":13,"courseId":14,"courseImg":15,"courseName":16,"workId":17,"workName":18},5,"53e1d2ef4961cca8eea3e23969ad2cb9","https:\u002F\u002Ftihai-oss-cloud.itihey.com\u002Fimg\u002F03a579384a6dc297c89809b582fcc767.png","默认课程","cfdfbca8407c4498b423b39edcb7d613","7.1房源总数显示测验","房源总数展示功能的实现流程为 ①发送请求②查询房源数据③数据展示④返回查询结果⑤渲染数据⑥访问网站",[21,26,33,41,47],{"answer":22,"createTime":5,"id":6,"options":23,"question":19,"source":24,"type":25},[],[8,9,10,11],"v1",0,{"answer":27,"createTime":5,"id":28,"options":29,"question":32,"source":24,"type":25},[],231881752,[30,31],"POST","GET","设计房源总数接口时,请求方式是",{"answer":34,"createTime":5,"id":35,"options":36,"question":40,"source":24,"type":25},[],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":24,"type":25},[],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":24,"type":25},[],231881755,[51,52,53],"渲染模版","创建模版","查找数据","为了能够在首页上显示房源总数,使房源总数随着数据库中数据量的变化而变化,这里我们需要将获取的房源总数量插入到模板文件的指定位置.这一过程称为"]