2018年1月5日

摘要: 阅读教材,思考并回答以下问题: 1.DDS和IDDS的组成。 DSS决策支持系统:决策支持系统基本结构主要由四个部分组成,即数据部分、模型部分、推理部分和人机交互部分: 数据部分是一个数据库系统; 模型部分包括模型库(MB)及其管理系统(MBMS); 推理部分由知识库(KB)、知识库管理系统(KBM 阅读全文
posted @ 2018-01-05 10:24 069王国栋 阅读(112) 评论(0) 推荐(0) 编辑
摘要: 父模板的制作 父模版导航栏 2首页、登录页、注册页 登录页:denglu.html 继承父模版 text.html JS文件Mylogin.jsp中的 Mylogin()函数对登录行为进行检验。 后台 denglu()函数控制登录。 注册功能 zhuce.html JS文件Mylogin.jsp中的 阅读全文
posted @ 2018-01-05 10:19 069王国栋 阅读(283) 评论(0) 推荐(0) 编辑

2017年12月22日

摘要: 1.更新User对象,设置对内的_password class User(db.Model): __tablename__ = 'user' _password = db.Column(db.String(200), nullable=False) #内部使用 2.编写对外的password fro 阅读全文
posted @ 2017-12-22 11:34 069王国栋 阅读(137) 评论(0) 推荐(0) 编辑

2017年12月20日

摘要: 准备视图函数search() 修改base.html 中搜索输入框所在的 <form action="{{ url_for('search') }}" method="get"> <input name="q" type="text" placeholder="请输入关键字"> 完成视图函数sear 阅读全文
posted @ 2017-12-20 21:31 069王国栋 阅读(73) 评论(0) 推荐(0) 编辑
摘要: 个人中心—视图函数带标签页面参数tag@app.route('/usercenter/<user_id>/<tag>')def usercenter(user_id, tag): if tag == ‘1': return render_template('usercenter1.html', ** 阅读全文
posted @ 2017-12-20 13:05 069王国栋 阅读(120) 评论(0) 推荐(0) 编辑

2017年12月16日

摘要: userbase.html usercenter1.html usercenter2.heml usercenter3.html def 阅读全文
posted @ 2017-12-16 21:41 069王国栋 阅读(119) 评论(0) 推荐(0) 编辑

2017年12月13日

摘要: 显示所有评论{% for foo in ques.comments %} 所有评论排序uquestion = db.relationship('Question', backref=db.backref('comments', order_by=creat_time.desc)) 显示评论条数{{ 阅读全文
posted @ 2017-12-13 21:48 069王国栋 阅读(121) 评论(0) 推荐(0) 编辑

2017年12月8日

摘要: index.py pinglun.html 阅读全文
posted @ 2017-12-08 14:09 069王国栋 阅读(123) 评论(0) 推荐(0) 编辑

2017年12月6日

摘要: index.py shouye.html pinglun.html 实验截图 阅读全文
posted @ 2017-12-06 11:08 069王国栋 阅读(120) 评论(0) 推荐(0) 编辑

2017年12月1日

摘要: 1. 在首页添加显示问答的列表,并定义好相应的样式。 无序列表 <ul > <li>Coffee</li> <li>Tea</li> <li>Milk</li> </ul> 2. 用字典向index.html传递参数。 index.py shouye.html 阅读全文
posted @ 2017-12-01 11:39 069王国栋 阅读(114) 评论(0) 推荐(0) 编辑

导航