Added the ability to calculate GPA, and optimized the relevant code to determine whether to run for the first time.
This commit is contained in:
@@ -134,6 +134,7 @@ for _ in range(run_count):
|
|||||||
# (学分*绩点)的总和/学分总和
|
# (学分*绩点)的总和/学分总和
|
||||||
gpa = "{:.2f}".format(total_xfjd / total_credit)
|
gpa = "{:.2f}".format(total_xfjd / total_credit)
|
||||||
|
|
||||||
|
# 整合个人信息
|
||||||
integrated_info += f"当前GPA:{gpa}\n------"
|
integrated_info += f"当前GPA:{gpa}\n------"
|
||||||
|
|
||||||
# 初始化输出成绩信息字符串
|
# 初始化输出成绩信息字符串
|
||||||
|
|||||||
Reference in New Issue
Block a user