Commit 65cb9059 by BellCodeEditor

auto save

parent 122db22e
Showing with 2 additions and 1 deletions
...@@ -2,7 +2,8 @@ ...@@ -2,7 +2,8 @@
# 于是写了下面的代码,可是总是得不到结果,请帮纠正bug并跑通程序。 # 于是写了下面的代码,可是总是得不到结果,请帮纠正bug并跑通程序。
scores = {'语文':89, '数学':95, '英语':80} scores = {'语文':89, '数学':95, '英语':80}
scores2 ={'1':120000000000000000000000000000000000000000000000000000000000000000000,'2':2100000000000000000000000000000000000000000000000000000000000000000000000000000000000000,'3':33333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333333} scores2 ={'1':120,'2':210,'3':333,'4':240}
def get_average(scores2): def get_average(scores2):
x = 0 x = 0
for subject, score in scores2.items(): for subject, score in scores2.items():
......
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