Commit c6a836f7 by BellCodeEditor

save project

parent 2d91e4c2
Showing with 8 additions and 3 deletions
......@@ -8,6 +8,12 @@ score = {'悟空': student1, '诺依': student2, '小贝': student3}
# 查询并打印出输入的名字对应的所有科目的成绩
while True:
name=input("悟空")
name=input("请输入你的名字")
if name in score:
for
\ No newline at end of file
print(name)
print("*"*50)
for k,v in score[name].items():
print(k,v)
print("*"*50)
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