Commit bfcebd10 by BellCodeEditor

save project

parent 136bee9a
Showing with 18 additions and 6 deletions
student1={'yw':91,'sx':88}
name=input("名字:")
info=score[name]
student1={'1':91,'2':92,'3':90}
student2={'1':98,'2':96,'3':96}
student3={'1':92,'2':94,'3':95}
score={'4':student1,'5':student2,'6':student3}
while True:
print("请输入要查询的名字,推出请输入q")
name=input("姓名:")
print("*"*10)
if name in score:
info=score[name]
for k,v in info.items():
print(k,v)
print("*"*10)
elif name=="q":
break
else:
print("1")
\ 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