Commit 30db5ad4 by BellCodeEditor

save project

parent 62692a77
Showing with 16 additions and 0 deletions
student1 = {'语文':120,'数学':100,'英语'100}
student2 = {'语文':90,'数学':60,'英语'79}
student3 = {'语文':82,'数学':90,'英语'88}
score = {'悟空'student1,'诺依'student2,'小贝'student3}
name=input("名字:")
print("*"+30)
if name in score():
score = score[name]
for k,v in score.items
print(k,v)
print("*"+10)
else:
print("查询错误,请输入正确的名字")
\ 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