Commit e8104138 by BellCodeEditor

save project

parent 4dbfccaa
Showing with 11 additions and 8 deletions
...@@ -7,10 +7,13 @@ score = {'悟空': student1, '诺依': student2, '小贝': student3} ...@@ -7,10 +7,13 @@ score = {'悟空': student1, '诺依': student2, '小贝': student3}
# 查询并打印出输入的名字对应的所有科目的成绩 # 查询并打印出输入的名字对应的所有科目的成绩
a = input("请输入:啊哈哈") while True:
if a in score: a = input("请输入:啊哈哈")
b = score[a] if a in score:
for k,v in b.items(): b = score[a]
print(k,v) for k,v in b.items():
else: print(k,v)
print("请输入啊哈哈!") elif a == 'q':
\ No newline at end of file break
else:
print("请输入啊哈哈!")
\ 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