Commit 19963a5d by BellCodeEditor

save project

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