Commit f95c25ae by BellCodeEditor

save project

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