Commit fa0d87f5 by BellCodeEditor

save project

parent 2dfb6bb6
Showing with 9 additions and 4 deletions
score = {'语文':0,'数学':0,'英语':0} student1 = {'语文':-2,'数学':-13,'英语':-10}
for k,v in score.items(): student2 = {'语文':0,'数学':0,'英语':0}
print(k,v) student3 = {'语文':-100000000000000000000,'数学':-100000000000000000000000,'英语':0}
score={"谢坤辰":student1,"于潇然":student2,"丸子老师":student3}
# 请对字典进行遍历,将保存的分数以键值对的形式提取打印出来 # 请对字典进行遍历,将保存的分数以键值对的形式提取打印出来
while True:
name=input("你他妈想查谁成绩???")
w=score[name]
for s,k in w.items():
print(s,k)
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