From 3341e66694e227fd6a2bfa32ce3356d0037a2e82 Mon Sep 17 00:00:00 2001 From: BellCodeEditor <bellcode_dev@bell.ai> Date: Sat, 5 Jun 2021 19:12:36 +0800 Subject: [PATCH] save project --- diy1.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/diy1.py b/diy1.py index ce831b6..bf4e221 100644 --- a/diy1.py +++ b/diy1.py @@ -2,9 +2,8 @@ # 于是写了下面的代码,可是总是得不到结果,请帮纠正bug并跑通程序。 scores = {'语文':89, '数学':95, '英语':80} - def get_average(scores): - score = 0 + scores = 0 for subject, score in scores.items(): score += score print('现在的总分是%d'%score) -- libgit2 0.25.0