2017年12月2日
摘要: 首页列表显示全部问答: 将数据库查询结果传递到前端页面 Question.query.all() 前端页面循环显示整个列表。 问答排序 python文件 @app.route('/') def lx(): context = { 'questions': Ques.query.all() } return render_template('lx3.htm... 阅读全文
posted @ 2017-12-02 02:05 学徒小梁 阅读(141) 评论(0) 推荐(0) 编辑