摘要:
个人学期总结 在本学期我们学习了一门新语言python,他的语句不像那些java那么复杂,因为PY是 解释性语言,天生就有作为测试脚本语言的优势,语法简单,通俗易懂,可移植性好。对 于我们这些初学者而言还是比较容易上手的。老师一步步教我们去详细的操作,可以让我 们去完全的掌握这个功能怎么实现。 刚开 阅读全文
摘要:
1.DDS和IDDS的组成。 DSS决策支持系统:决策支持系统基本结构主要由四个部分组成,即数据部分、模型部分、推理部分和人机交互部分: 数据部分是一个数据库系统; 模型部分包括模型库(MB)及其管理系统(MBMS); 推理部分由知识库(KB)、知识库管理系统(KBMS)和推理机组成; 人机交互部分 阅读全文
摘要:
1.更新User对象,设置对内的_password class User(db.Model): __tablename__ = 'user' _password = db.Column(db.String(200), nullable=False) #内部使用 2.编写对外的password fro 阅读全文
摘要:
示例: Lobby.query.filter( or_( and_( Lobby.id == Team.lobby_id, LobbyPlayer.team_id == Team.id, LobbyPlayer.player_id == player.steamid ), and_( Lobby.i 阅读全文
摘要:
个人中心—视图函数带标签页面参数tag@app.route('/usercenter//')def usercenter(user_id, tag): if tag == ‘1': return render_template('usercenter1.html', **context) @app.route('/usercenter//') @loginFirst def u... 阅读全文
摘要:
1.新页面userbase.html,用<ul ><li role="presentation"> 实现标签页导航。<ul class="nav nav-tabs"> <li role="presentation"><a href="#">Home</a></li> <li role="presen 阅读全文
摘要:
显示所有评论{% for foo in ques.comments %} 所有评论排序 uquestion = db.relationship('Question', backref=db.backref('comments', order_by=creat_time.desc)) 显示评论条数{{ 阅读全文
摘要:
定义评论的视图函数@app.route('/comment/',methods=['POST'])def comment():读取前端页面数据,保存到数据库中 用',methods=['GET','POST']) def detail(question_id): quest=Question.query.filter(Question.id == question_id).first()... 阅读全文
摘要:
主PY文件写视图函数,带id参数。 @app.route('/detail/<question_id>')def detail(question_id): quest = return render_template('detail.html', ques = quest) @app.route(' 阅读全文
摘要:
首页列表显示全部问答: 完成问答详情页布局: 1.包含问答的全部信息 2.评论区 3. 以往评论列表显示区。 阅读全文