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):
sum_mc = 0
for subject, mc in mc.items():
sum_mc += mc
print('现在的总分是%d'%sum_mc)
ave_mc = sum_mc/len(mc)
print('平均分是%d'%ave_mc)
get_average(mc)
\ No newline at end of file
if mc >= 4:
print('魔法猫咪!稳辣!')
elif 1<mc <= 3:
print('塔塔开!完辣呀!')
else:
print('我吃好了!!')
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