Commit 2f5181c8 by BellCodeEditor

save project

parent 1ddb3d15
Showing with 10 additions and 6 deletions
score1 = {'语文':91,'数学':88,'英语':85}
score2 = {'语文':91,'数学':88,'英语':85}
score3 = {'语文':91,'数学':88,'英语':85}
score = {'悟空':student1,'诺依':student2,'小贝':student3}
key=input("请输入您需要查询成绩的名字;")
print(score[key])
score = {'悟空':score1,'诺依':score2,'小贝':score3}
while True:
key = input("请输入您需要查询成绩的名字:")
if key == "q":
break
if key in score:
print(scrore[key])
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