Commit 7e4b0f78 by BellCodeEditor

save project

parent 8f49ada3
Showing with 9 additions and 0 deletions
......@@ -4,6 +4,14 @@ student3 = {'语文':100,'数学':100,'英语':100}
score = {'悟空':student1,'八':student2,'发':student3}
name = input("名字:")
print("*" * 30)
if name in score:
score = score[name]
for k,v in score.items():
print(k,v)
print("*" * 30)
else:
print("查询错误")
info = score[name]
for k,v in info.items():
print(k,v)
\ 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