Commit a4cf2fe1 by BellCodeEditor

save project

parent 3758b0f6
Showing with 13 additions and 2 deletions
...@@ -7,10 +7,12 @@ for v in score.values(): ...@@ -7,10 +7,12 @@ for v in score.values():
for v,k in score.items(): for v,k in score.items():
print(v,k) print(v,k)
score.
score.pop("语文")
score.clear()
score.del
......
score = {'语文':91,'数学':88,'英语':85} student1 = {'语文':91,'数学':88,'英语':85}
student2 = {'语文':91,'数学':88,'英语':85}
student3 = {'语文':91,'数学':88,'英语':85}
score={'悟空':student1 ,'诺依':student2 , '小贝':student3 }
name=input("谁:")
info=score[name]
for k,v in info.items():
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