Commit 16ef8e2d by BellCodeEditor

save project

parent c6732a9a
Showing with 3 additions and 0 deletions
......@@ -4,10 +4,13 @@ student3 = {'语文':-100000000000000000000,'数学':-100000000000000000000000,'
score={"谢坤辰":student1,"于潇然":student2,"丸子老师":student3}
# 请对字典进行遍历,将保存的分数以键值对的形式提取打印出来
while True:
print("你TM退出按q,栓Q")
name=input("你他妈想查谁成绩???")
if name in score:
w=score[name]
for s,k in w.items():
print(s,k)
elif:name=="q":
break
else:
print("这人TM不存在!!!!!!!!!!!***********************!!!SB!!!!!!")
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