数据库作业
基于 SQL Server 的学生成绩管理系统;
后台使用 Python 语言:
- 用 Flask 搭建网页服务;
- 用 pyodbc 连接数据库;
-
连接 SQL Server 后, 顺序执行 init 目录下的 T-SQL 脚本, 完成数据库的初始化;
-
安装 Python3, 并安装依赖:
pip install -r requirements.txt
-
修改 modules/tools.py 中的数据库连接信息;
-
运行 APP.py; 浏览器访问 http://localhost:5000;
-
登录系统, 开始管理学生成绩;
初始用户有:
- admin
- student1
- student2
- teacher1
- teacher2
初始密码均为: 123456