From 553713e715ccd288b4fb97c0e07c8b426a7ebfdf Mon Sep 17 00:00:00 2001 From: BellCodeEditor <bellcode_dev@bell.ai> Date: Sat, 3 Apr 2021 10:05:10 +0800 Subject: [PATCH] save project --- diy1.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/diy1.py b/diy1.py index ce831b6..9e03b56 100644 --- a/diy1.py +++ b/diy1.py @@ -5,8 +5,8 @@ scores = {'语文':89, '数学':95, '英语':80} def get_average(scores): score = 0 - for subject, score in scores.items(): - score += score + for subject, sco in scores.items(): + score += sco print('现在的总分是%d'%score) ave_score = score/len(scores) print('平均分是%d'%ave_score) -- libgit2 0.25.0