Commit 3cad88db by BellCodeEditor

save project

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