Commit f95c25ae by BellCodeEditor

save project

parent 7406cdc9
Showing with 6 additions and 3 deletions
...@@ -3,12 +3,15 @@ student2={"语文":1,"数学":2,"英语":3} ...@@ -3,12 +3,15 @@ student2={"语文":1,"数学":2,"英语":3}
student3={"语文":7,"数学":3,"英语":1} student3={"语文":7,"数学":3,"英语":1}
score={"悟空":student1,"一诺":student2,"小贝":student3} score={"悟空":student1,"一诺":student2,"小贝":student3}
name = input("请输入名字") name = input("请输入名字")
info=score[name] while True
if name in score: if name in score:
info=score[name]
print("*"*30) print("*"*30)
for k,v in info.items(): for k,v in info.items():
print(k,v) print(k,v)
print("*"*30) print("*"*30)
else: elif name="q":
break
else:
print("No have person!") 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