Commit f249ace9 by BellCodeEditor

save project

parent 5895ac59
Showing with 8 additions and 5 deletions
score = {'语文':91,'数学':88,'英语':85} a = {'语文':91,'数学':88,'英语':85}
for k,v in score.items(): b = {'语文':90,'数学':82,'英语':81}
# 请对字典进行遍历,将保存的分数以键值对的形式提取打印出来 c = {'语文':99,'数学':86,'英语':80}
print(k,v) score = {'悟空':a,'诺一':b,'小贝':c}
name = input("名字:")
for k,v in score[name].itwms():
print(k,v)
\ No newline at end of file
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