An open API service indexing awesome lists of open source software.

https://github.com/chrisrbxiong/find-the-best-grade-for-whu-scholarship

Find the best distribution of specialized elective courses for WHU scholarship
https://github.com/chrisrbxiong/find-the-best-grade-for-whu-scholarship

python whu

Last synced: 4 months ago
JSON representation

Find the best distribution of specialized elective courses for WHU scholarship

Awesome Lists containing this project

README

        

# Find The Best Distribution of Specialized Elective Courses for WHU Scholarship

## 说明
由于专业选修课程既可以放入B1列表,也可以放入B2列表中。且B1列表和B2列表对最终加权平均分的计算方法不同,因此需要找到最优的分配方式,以使得最终加权平均分最大。限定条件为B2总数不超过8门,纳入B1的专业选修课总数不超过4门。

## 使用方式
在命令行中输入```python finder.py ```,为各项成绩的记录文件名。
记录文件的编码方式应为 UTF-8 without BOM

## 成绩记录文件格式
三种科目类别:必修,专业选修和公共选修,以"\*\*\****"来标识某一类科目成绩记录的开始。第一类为必修,第二类为专业选修,第三类为公共选修。在每一类中,每一科目成绩独占一行,并按照<科目名称>\t<科目学分>\t<科目成绩>来记录。
例如:
```
******************
必修课1 2 90
必修课2 3 50
******************
专业选修1 3 90
专业选修2 2 80
******************
公共选修1 1 90
公共选修2 1 90
```

## 依赖包
- prettytable
: 若未安装,结果将以一般的格式字符串形式输出,否则以表格形式输出。