Commit eb027d1d by BellCodeEditor

save project

parent 6de235e3
Showing with 13 additions and 4 deletions
s1 = {'语文':91,'数学':88,'英语':85}
# 请对字典进行遍历,将保存的分数以键值对的形式提取打印出来
for f in s1:
print(i,s1[i])
s2 = {'语文':83,'数学':93,'英语':43}
s3 = {'语文':68,'数学':52,'英语':10}
s4 = {'语文':98,'数学':100,'英语':100}
s= {'张三':s1,'李四':s2,'王五':s3,'赵六':s4}
while True:
neme=input('输入你要查询的人,如果退出请按q键:')
if neme=='q':
break
if neme in s:
qwe=s[neme]# 请对字典进行遍历,将保存的分数以键值对的形式提取打印出来
print('*'*10)
for i in qwe:
print('*'*10)
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