Commit 926a3008 by BellCodeEditor

save project

parent d8c50f97
Showing with 13 additions and 0 deletions
s1 = {"语":89,"数":98,"英":100}
s2 = {"语":87,"数":95,"英":89}
s3 = {"语":80,"数":78,"英":99}
classroom = {"w":s1,"e":s2,"r":s3}
while True:
name = input("请问找谁")
if name in classroom:
a = classroom[name]
for k,v in a.iteam():
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