Commit b83314d5 by BellCodeEditor

save project

parent 42596ee7
Showing with 7 additions and 11 deletions
mc = {'语文':89,'数学':95,'英语':80} mc = 0
def get_average(mc): if mc >= 4:
sum_mc = 0 print('魔法猫咪!稳辣!')
for subject, mc in mc.items(): elif 1<mc <= 3:
sum_mc += mc print('塔塔开!完辣呀!')
print('现在的总分是%d'%sum_mc) else:
ave_mc = sum_mc/len(mc) print('我吃好了!!')
print('平均分是%d'%ave_mc)
get_average(mc)
\ 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