Commit 8707893b by BellCodeEditor

save project

parent 3d3aed17
Showing with 9 additions and 3 deletions
...@@ -3,8 +3,14 @@ ...@@ -3,8 +3,14 @@
# print(goods) # print(goods)
# 请将"农夫山泉"删掉,并打印出新的商品信息 # 请将"农夫山泉"删掉,并打印出新的商品信息
score={'语文':91,'数学':88,'英语':85} s1={'语文':91,'数学':88,'英语':85}
for i,a in score.items(): s2={'语文':81,'数学':89,'英语':95}
print(i+" "+str(a)) s3={'语文':97,'数学':98,'英语':84}
score={'a':s1,'b':s2,'c':s3}
name=input('名字:')
abcd=score[name]
for i,j in abcd.items():
print(i+" "+str(j))
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