Commit 2b0a883a by BellCodeEditor

save project

parent a5b1ed00
Showing with 6 additions and 3 deletions
......@@ -3,9 +3,12 @@ score2 = {'语文':114514,'数学':191,'英语':810}
score3 = {'语文':11454,'数学':1919,'英语':810}
xa={"binbin":score,"jiege":score2,"awei":score3}
nand=input()
a=xa[nand]
for binbin,jiege in a.items():
print(binbin,jiege)
if nand in xa:
a=xa[nand]
for binbin,jiege in a.items():
print(binbin,jiege)
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