Commit 025ba587 by BellCodeEditor

save project

parent 2c0f5922
Showing with 11 additions and 2 deletions
score = {'语文':91,'数学':88,'英语':85} score={'m':3,'n':4,'dfrasfddavfxdtrfewqvvghsdfv':567664,'wer':234}
while True:
name=input('name:')
print('*'*30)
if name in score:
score=score[name]
for k,v in score.items():
print(k,v)
pirnt('*'*30)
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