From b5d7b01ca80b53de3e1582dff3587cccd9257eae Mon Sep 17 00:00:00 2001 From: NianBroken Date: Wed, 31 Jan 2024 15:38:19 +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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index 9e4e647..68435bb 100644 --- a/main.py +++ b/main.py @@ -96,7 +96,7 @@ else: info_file_content = info_file.read() # 如果info.txt文件中保存的个人信息与获取到的个人信息不一致,则代表是第一次运行程序 if info_file_content == encrypted_info: - # 非二次运行程序 + # 非第一次运行程序 run_count = 1 # 第一次运行程序则运行两遍,否则运行一遍