Commit c6732a9a by BellCodeEditor

save project

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