
(1)要搭建这样一个信息系统,前期需要准备完成的步骤有:①开发模式选择,②概要设计,③详细设计,④可行性分析,⑤需求分析,正确的顺序为:
系统的部分代码如下
from flask import Flask,render_template
import sqlite3
app=flask(__name__)
@app.route("/")
def index():
return render_template("index.html")
@app.route("/caiji",methods=["GET","POST"])#将采集的数据返回主页面
def get():
id=int(request.args.get("id"))
nowtime=datetime.datetime.now()
nowtime=nowtime.strftime("%y-%m-%d %H:%M:%S")
db=sqlite3.connect("data/data.db")
cur=db.cursor()
cur.execute("INSERT INTO classroom(id,vd,time) VALUES(%d,%f, '%s')" %(id,vd,nowtime))
db.commit()
#根据阈值控制执行器,代码略
return render_template("index.html",text="数据采集成功")
#其它系统子页面路由,代码略
if __name__=="__main__"
app.run(host="192.168.0.1", port=808)
(2)请在划线处填上合适的代码。
(3)该系统的开发模式是
(4)阅读分析上述代码可知,在该系统中数据采集的方式为
(5)要添加教师用户,需要到数据管理维护模块中操作,请写出到该页面的URL:

同类型试题

y = sin x, x∈R, y∈[–1,1],周期为2π,函数图像以 x = (π/2) + kπ 为对称轴
y = arcsin x, x∈[–1,1], y∈[–π/2,π/2]
sin x = 0 ←→ arcsin x = 0
sin x = 1/2 ←→ arcsin x = π/6
sin x = √2/2 ←→ arcsin x = π/4
sin x = 1 ←→ arcsin x = π/2


y = sin x, x∈R, y∈[–1,1],周期为2π,函数图像以 x = (π/2) + kπ 为对称轴
y = arcsin x, x∈[–1,1], y∈[–π/2,π/2]
sin x = 0 ←→ arcsin x = 0
sin x = 1/2 ←→ arcsin x = π/6
sin x = √2/2 ←→ arcsin x = π/4
sin x = 1 ←→ arcsin x = π/2

