Commit 0306c5a2 by BellCodeEditor

save project

parent 70863d31
Showing with 19 additions and 1 deletions
scores={'语文':89,'数学':95,'英语':80}
def get_average(scores):
sum_score=0
for k,y in scores.items():
sum_score+=y
print('现在的总分是%d'%sum_score)
ave_score=sum_score/len(scores)
print('平均分是%d'%ave_score)
get_average(scores)
# 灭霸打了一个响指,宇宙一半生物都灰飞烟灭。
# 😫打了一个响指,宇宙一半生物都灰飞烟灭。
# 剩下的复仇者联盟成员们依旧没有放弃反击灭霸的机会,他们决定利用最后一次行动机会,去把灭霸手里的宝石偷回来。
# 如果偷回的宝石数是4颗及以上,便获得了打败灭霸的力量;如果偷回的宝石数是1-3颗,他们可以全员出动,殊死一搏;如果偷回的宝石数是0颗,只能尝试呼叫惊奇队长。
# 最终,他们因为实力相差太大,1颗宝石都没有偷回来。
......
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