Commit 0c7b95c2 by BellCodeEditor

save project

parent 12ccab48
Showing with 9 additions and 4 deletions
......@@ -4,12 +4,17 @@ student3 = {'语文': 95, '数学': 100, '英语': 93}
score = {'悟空': student1, '诺依': student2, '小贝': student3}
name = input("名字:")
if name in score:
while 1:
name = input("名字:")
print('输入Q可退出')
print('*'*30)
if name in score:
for z,y in score[name].items():
print(z,y)
print('*'*30)
else:
elif name=='q':
print('程序已结束')
break
else:
print('查无此人')
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