Commit 64e90f0a by BellCodeEditor

save project

parent 7e030e1a
Showing with 12 additions and 0 deletions
scores = {'语文':95,'数学':95,'英语':95}
def get_b(scores):
score=0
for subject,a in scores.items():
score+=a
print('现在的总分是%d'%score)
b_score = score/len(scores)
print('现在的平均分是%d'%b_score)
get_b(scores)
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