From b1494db16a098fab940284d67f3c4c998eeb2577 Mon Sep 17 00:00:00 2001
From: BellCodeEditor <bellcode_dev@bell.ai>
Date: Sat, 23 Apr 2022 16:47:32 +0600
Subject: [PATCH] save project

---
 diy1.py |  9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/diy1.py b/diy1.py
index ce831b6..5c9d32f 100644
--- a/diy1.py
+++ b/diy1.py
@@ -4,11 +4,12 @@
 scores = {'语文':89, '数学':95, '英语':80}
 
 def get_average(scores):
-    score = 0  
+    ave_score = 0
+    all_score = 0 
     for subject, score in scores.items():
-        score += score
-        print('现在的总分是%d'%score)
-    ave_score = score/len(scores)
+        all_score+= score
+        print('现在的总分是%d'%all_score)
+    ave_score = all_score/len(scores)
     print('平均分是%d'%ave_score)
 
 get_average(scores)
\ No newline at end of file
--
libgit2 0.25.0