(1)在设计该系统的前期准备中,需要选定数据库管理系统,这一过程属于
(2)下列措施
(3)该系统服务端程序采用Flask Web框架编写,网站功能页面规划如下表所示:
序号 | 访问地址 | 功能说明 |
1 | / | 主页 |
2 | /input | 成绩录入 |
3 | /view?num=20210115 | 根据学号查询成绩 |
4 | /analysis | 成绩分析 |
5 | …… | …… |
(4)将系统数据库中的成绩数据导出为文件“score.xlsx”,如图a所示,并制作图表如图b所示,部分程序代码如下,请在划线处填入合适的代码。


图a 图b
import pandas as pd
import matplotlib. pyplot as plt
#图表显示中文字体,代码略
df = pd. read_ excel(" score. xlsx" ) #读取Excel文件中的数据
df["差值"] = abs(df["信息"]-df["通用"]) #差值为2个科目成绩差的绝对值
df1 = df[
dfl = df1. sort. values("差值",ascending = False). head(5) #降序排序并取前5行
x = df1["姓名"]
y = df1["差值"]
plt. title("偏科差值较高学生" ) #设置图表标题
plt. bar (x, y) #绘制柱形图
plt. show()

同类型试题

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

