Commit 6b5e0984 by BellCodeEditor

save project

parent befaf9d9
Showing with 9 additions and 5 deletions
student={'语文':91,'数学':88,'英语':85} student={'语文':91,'数学':88,'英语':85}
score={'悟空':student} score={'悟空':student}
name=input("请输入姓名:")
print("*"*30)
while True: while True:
name=input("请输入姓名,退出请按q:")
if name in score: if name in score:
a=score[name] a=score[name]
print("*"*30)
for k,v in a.items(): for k,v in a.items():
print(k,v) print(k,v)
elif name="q": print("*"*30)
elif name=="q":
print("*"*30)
print("退出程序") print("退出程序")
break break
else: else:
print("输入错误") print("*"*30)
\ No newline at end of file print("输入错误")
print("*"*30)
\ 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