From dfc75794f5623199a372a6f8f0074daa29e51a6d Mon Sep 17 00:00:00 2001 From: BellCodeEditor <bellcode_dev@bell.ai> Date: Sat, 20 May 2023 17:44:16 +0800 Subject: [PATCH] save project --- diy1.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/diy1.py b/diy1.py index eefeb2c..49f6551 100644 --- a/diy1.py +++ b/diy1.py @@ -3,12 +3,12 @@ scores = {'语文':89, '数学':95, '英语':80} -def get_average(dict_1)): +def get_average(dict_1): score = 0 - for subject, score in scores.items(): + for subject,s in scores.items(): - score += score + score += s print('现在的总分是%d'%score) ave_score = score/len(scores) print('平均分是%d'%ave_score) -- libgit2 0.25.0