Commit d65389eb by BellCodeEditor

save project

parent 6b7d1891
Showing with 16 additions and 2 deletions
...@@ -7,8 +7,10 @@ while True: ...@@ -7,8 +7,10 @@ while True:
if name in score: if name in score:
a=score[name] a=score[name]
print('*'*30) print('*'*30)
for k,v in info.items(): for k,v in a.items():
print(k,v) print(k,v)
break print('*'*30)
else: else:
print('输入错误') print('输入错误')
s1={'语文':91,'数学':88,'英语':85}
s2={'语文':97,'数学':98,'英语':90}
s3={'语文':100,'数学':100,'英语':100}
classroom={'David':s1,'Amanda':s2,'you-dad':s3}
while True:
name=input('请问你找谁?')
if name in classroom:
a=classroom[name]
for k,v in a.items():
print(k,v)
else:
print('你确定有这个人?!?!')
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