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:
碎念_Nian
2024-01-31 18:08:06 +08:00
committed by GitHub
Unverified
parent d5cc4b86b7
commit 0e27d06019
+1
View File
@@ -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------"
# 初始化输出成绩信息字符串 # 初始化输出成绩信息字符串