Commit 5fc99b73 by BellCodeEditor

save project

parent ab9f9b90
Showing with 5 additions and 5 deletions
......@@ -3,11 +3,11 @@
scores={'语文':89,'数学':95,'英语':80}
def get_average(dict_1):
score = 0
b=0
sb=0
for a, score in scores.items():
sb +=sb+score
for s,b in scores.items():
sb=sb+b
print('现在的总分是'+str(sb))
ave_score = sb/len(scores)
print('平均分是'+str(ave_score))
get_average(dict_1)
\ No newline at end of file
get_average(scores)
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment