Commit 634adff8 by BellCodeEditor

save project

parent 7e4b0f78
Showing with 13 additions and 14 deletions
......@@ -2,16 +2,15 @@ student1 = {'语文':100,'数学':100,'英语':100}
student2 = {'语文':100,'数学':100,'英语':100}
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
while True:
name = input("名字:")
print("*" * 30)
if name in score:
score = score[name]
for k,v in score.items():
print(k,v)
print("*" * 30)
else:
print("查询错误")
print("*" * 30)
print(程序结束)
\ 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