Commit fc06e6de by BellCodeEditor

save project

parent fca1ba7e
Showing with 21 additions and 0 deletions
student1={语文:99,数学:22}
student2={语文:11,数学:33}
score={hehe:student1,haha:student2}
input ("你要查询的名字")
\ No newline at end of file
student1={"语文":99,"数学":22}
student2={"语文":11,"数学":33}
score={'hehe':student1,'haha':student2}
while True :
name=input ("你要查询的名字:")
if name in score :
for k,v in score.items() :
print("*"*30)
subject=input ("你要查询的科目:")
c=score[k][subject]
print(c)
continue
else:
print("没有这个人")
continue
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