- 安装python依赖包
pip install -r requirement.txt
- 修改config.py
# 修改用户名和密码, 数据库名
SQLALCHEMY_DATABASE_URI = "mysql://root:redhat@localhost/student"
- 初始化数据库
python3 manage.py initdb
- 开启服务
python3 manage.py runserver
- 浏览器访问
http://127.0.0.1:5000
- 平均学分绩点
- 学分绩点总和
- 学分加权平均分