Commit 19963a5d by BellCodeEditor

save project

parent 07d5e87c
Showing with 8 additions and 3 deletions
......@@ -3,12 +3,17 @@ b={'语文':100,'数学':62,'英语':95}
c={'语文':98,'数学':24,'英语':100}
score = {'悟空':a,'诺伊':b,'穷大':c}
while True :
print('*'*30)
f=print('查询结束按b')
name=input('输入名字:')
if name in score:
for a,b in score.items():
if name=='b':
break
if name in score :
d=score[name]
for a,b in d.items():
print(a,b)
else:
print('输入错误')
continue
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