Commit 7e54ba45 by BellCodeEditor

save project

parent 5ab88987
Showing with 14 additions and 1 deletions
score = {'语文':91,'数学':88,'英语':85}
mc1 = {'语文':93,'数学':93,'英语':98}
mc2 = {'语文':88.5,'数学':95,'英语':97}
mc3 = {'语文':85,'数学':95,'英语':95}
wc = {'潘':mc1,'禚':mc2,'田':mc3}
name = input("名字:")
print("*" * 30)
if name in wc:
wc = wc[name]
for k,v inwc.items():
print(k,v)
print("*" * 30)
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