Commit 40e76f8a by BellCodeEditor

save project

parent d2d09741
Showing with 10 additions and 4 deletions
......@@ -2,6 +2,13 @@ student1={"语文":71,"数学":78,"英语":90}
student2={"语文":1,"数学":2,"英语":3}
student3={"语文":7,"数学":3,"英语":1}
score={"悟空":student1,"一诺":student2,"小贝":student3}
info=score["悟空"]
for i,e in info.items():
print(i,e)
\ No newline at end of file
name = input("请输入名字")
info=score[name]
if name in score:
print("*"*30)
for k,v in info.items():
print(k,v)
print("*"*30)
else:
print("No have person!")
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