From 0e27d06019a0320639d3b9389a3628652a0563c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A2=8E=E5=BF=B5=5FNian?= Date: Wed, 31 Jan 2024 18:08:06 +0800 Subject: [PATCH] Added the ability to calculate GPA, and optimized the relevant code to determine whether to run for the first time. --- main.py | 1 + 1 file changed, 1 insertion(+) diff --git a/main.py b/main.py index 138afdf..d402f83 100644 --- a/main.py +++ b/main.py @@ -134,6 +134,7 @@ for _ in range(run_count): # (学分*绩点)的总和/学分总和 gpa = "{:.2f}".format(total_xfjd / total_credit) + # 整合个人信息 integrated_info += f"当前GPA:{gpa}\n------" # 初始化输出成绩信息字符串