Commit 3cad88db by BellCodeEditor

save project

parent d632491b
Showing with 12 additions and 3 deletions
...@@ -7,7 +7,15 @@ score = {'悟空': student1, '诺依': student2, '小贝': student3} ...@@ -7,7 +7,15 @@ score = {'悟空': student1, '诺依': student2, '小贝': student3}
# 查询并打印出输入的名字对应的所有科目的成绩 # 查询并打印出输入的名字对应的所有科目的成绩
while True : while True:
for i in score.keys(): print("退出请输入p!!!")
print(i,score[i]["数学"]) lucy=input("我是:")
if lucy in score:
print(score[lucy])
elif lucy=="p":
break break
else:
print("输入错误!!!")
print("*"*20)
print("已退出!!!")
print("*"*20)
\ 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