Commit 9014005b by BellCodeEditor

save project

parent a8594179
Showing with 11 additions and 7 deletions
# 下面的这段代码一共有5处错误,每一行都有一种典型的语法错误,请修改~ scores = {'语文':89,'数学':95,'英语':80}
for i in range(1,8)
print'克洛诺斯将第' + str(i) + '个孩子吞进肚子里' def get_average(scores):
if i = 5: sum_score = 0
break for subject, score in scores.items():
print('第6个孩子宙斯逃过一劫。) sum_score += score
\ No newline at end of file print('分是%d'%sum_score)
ave_score = sum_score/len(scores)
print('平均分是%d'%ave_score)
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