Commit 238b121c by BellCodeEditor

save project

parent e279185e
Showing with 7 additions and 7 deletions
......@@ -5,11 +5,11 @@ score = {'悟空': student1, '诺依': student2, '小贝': student3}
# for k,v in score.items():
# for a,b in v.items():
# print(a,"的分数是",b)
while True:
name = input("名字:")
info = score[name]
for k,v in info.items():
print(k,v)
while True:
# name = input("名字:")
# info = score[name]
# for k,v in info.items():
# print(k,v)
myscore = {}
name = input("请输入名字")
if name in score:
......@@ -18,8 +18,8 @@ while True:
print("对不起,您输入的名字错误,请您重新输入")
for k,v in myscore.items():
print(k,"的分数是",v)
print("*"*30)
print('*' * 30)
# 查询并打印出输入的名字对应的所有科目的成绩
......
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