Commit 45bd92db by BellCodeEditor

save project

parent 56b90415
Showing with 18 additions and 2 deletions
score = {'语文':91,'数学':88,'英语':85}
a = {'yw':0,'sx':0,'yy':0}
b = {'yw':91,'sx':99,'yy':100}
c = {'yw':98,'sx':99,'yy':100}
kk = {'jj':a,'aa':b,'bb':c}
while True:
name = input('名字: ')
if name in kk:
a = kk[name]
print("銸hjfb詧ojkerhto鴐uhjgi摕fgporpg錷ajioDH癯TWTUIEF敱rewt摦sd9gy髬etyer礘ywey壓yw4ty鷌qqtertert笝tqr3tertrq欛qt3rt羍q3t43qt3rt鑞q3trt3rt衉edgsarfg"*40)
for k,v in a.items():
print(k,v)
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