Commit 027fae87 by BellCodeEditor

auto save

parent b8002964
Showing with 38 additions and 0 deletions
student1={'语文':300,'数学':0,'英语':0}
student2={'语文':0,'数学':300,'英语':0}
student3={'语文':0,'数学':0,'英语':300}
score={'刘备':student1,'吕布':student2,'曹操':student3}
info=score['刘备']
for k,y in info.items():
print(k,y)
score={'语文':300,'数学':0,'英语':0}
for i in score:
print(i)
score={'语文':300,'数学':0,'英语':0}
for k in score.keys():
print(k)
score={'语文':300,'数学':0,'英语':0}
for v in score.values():
print(v)
score={'语文':300,'数学':0,'英语':0}
for k,v in score.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