Commit befaf9d9 by BellCodeEditor

save project

parent 43853e07
Showing with 15 additions and 0 deletions
student={'语文':91,'数学':88,'英语':85}
score={'悟空':student}
name=input("请输入姓名:")
print("*"*30)
while True:
if name in score:
a=score[name]
for k,v in a.items():
print(k,v)
elif name="q":
print("退出程序")
break
else:
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