(1) 搭建智慧图书借阅管理系统前正确的准备步骤是
①确定系统应具备的功能模块、系统物理配置和数据库管理系统选择;
②调查所有师生和管理员对图书管理系统的需求;
③明确系统“先干什么,后干什么” ,进行输入、输出设计,人机界面设计等;
④分析学校的经济、技术、环境等方面的可行性;
⑤选择图书管理系统的开发模式。
A .②①⑤④③ B .①④⑤②③ C .②④⑤①③ D .①②⑤④③
(2) 系统读取电子标签信息的过程采用
(3) 小朱在图书管理系统中设计了一个查询剩余天数的功能,网页部分效果如图所示。

实现上述功能部分代码如下:
def getbook(bh):#查询并返回数据库中的指定编号的记录
conn=sqlite3.connect('library.db')#连接数据库
cur=conn.cursor()#生成一个游标
cur.execute('select * from books where book_no=%s'%bh)
book=cur.fetchall()
cur.close()#关闭游标
conn.close()#关闭数据库连接
return book
def daydelta(a,b): #计算两个日期间隔的天数
代码略
@app.route(' ①
def cal():
if request.method=='POST':
bh=request.form.get('bh') #获取图书编号
book= ②
today=datetime.now().strftime('%Y-%m-%d') #将时间转成字符型数据并保存 passdays=daydelta(book[0][4],today) #计算出借日至今的天数
ds= 14-passdays

#渲染模板,代码略
else:
return redirect('/')
观察上述代码可知,存储相关数据的数据表名称是
(4) 结合上述代码,通过 http://192. 168. 1.7:5000/cal_days 访问服务器能实现查询剩余天数的功 能,请在划线处填入合适的代码。
(5) 学校图书馆借阅规定:前 14 天为正常借阅期,第 15 天起为逾期。上述程序加框处的功能为“正常借阅期内输出剩余天数,逾期后输出逾期天数” ,已知 passdays 为借出天数,则加框处代码为
A. if ds<0: tips="图书已逾期,逾期天数为"+str(ds) else: tips="图书借阅剩余天数为" + str(ds) | B. if ds<0: ds=-ds tips="图书已逾期,逾期天数为"+str(ds) else: tips="图书借阅剩余天数为" + str(ds) |
C. if ds>=0: tips="图书借阅剩余天数为" + str(ds) if ds<0: ds=-ds tips="图书已逾期,逾期天数为"+str(ds) | D. if ds<0: ds=-ds tips="图书已逾期,逾期天数为"+str(ds) if ds>0: tips="图书借阅剩余天数为" + str(ds) |

同类型试题

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

