Commit 9d0975fc by BellCodeEditor

save project

parent 2836f5c5
Showing with 6 additions and 6 deletions
...@@ -7,9 +7,9 @@ def get_average(scores): ...@@ -7,9 +7,9 @@ def get_average(scores):
a = 0 a = 0
for subject, cod in scores.items(): for subject, cod in scores.items():
a += cod a += cod
print('现在的总分是%d'%a) print('现在的总分是%d'%cod)
print(cod) ave_cod=a/len(scores)
# ave_cod=a/len(scores) print('平均分是%d'%ave_cod)
# print('平均分是%d'%ave_cod)
# get_average(scores)
\ 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