Commit 6f7ab654 by BellCodeEditor

save project

parent 62692a77
Showing with 18 additions and 0 deletions
q = {'语文':110,'数学':103,'英语':90}
w = {'语文':80,'数学':88,'英语':109}
e = {'语文':96,'数学':96,'英语':80}
r = {'语文':98,'数学':96,'英语':76}
t = {'语文':100,'数学':0,'英语':0}
score = {'小明':q,'悟空':w,'诺依':e,'小贝':r,'高样':t}
while True:
name=input('名字:')
print('*'*30)
if name in score:
score = score[name]
for i,v in score.items():
print(i,v)
print('*'*30)
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