Commit 634adff8 by BellCodeEditor

save project

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