Commit 1197fbb0 by BellCodeEditor

save project

parent f0c715f8
Showing with 18 additions and 0 deletions
students1={"语文":90,"英文":98,"数学":100}
students2={"语文":91,"英文":99,"数学":99}
score={"小明":students1,"小红":students2}
while True:
name=input("名字:")
if name in score:
ABC=score[name]
print("*" * 30)
for k,v in ABC.items():
print(k,v)
print("*" * 30)
elif name=="q":
break
else:
print("查询错误!")
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