Commit acb50947 by BellCodeEditor

auto save

parent b46b7752
Showing with 4 additions and 22 deletions
......@@ -2,27 +2,9 @@
# 于是写了下面的代码,可是总是得不到结果,请帮纠正bug并跑通程序。
scores = {'语文':89, '数学':95, '英语':80}
score1 = []
for score in scores.values():
for i in score1:
i+=i
print(i)
list1 = [1,2,3]
for i in list1:
i += i
print(i)
# print('现在的总分是%d'%score)
# ave_score = score/len(scores)
# print('平均分是%d'%ave_score)
scores_zong = sum(scores.values())
print(scores_zong)
pingjunfen = scores_zong /len(scores)
print(pingjunfen)
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