Commit 0eb662d6 by BellCodeEditor

save project

parent 3ad24d35
Showing with 11 additions and 3 deletions
...@@ -16,6 +16,14 @@ student15 = {'语文': 0, '数学': 0, '英语': 0} ...@@ -16,6 +16,14 @@ student15 = {'语文': 0, '数学': 0, '英语': 0}
student16 = {'语文': 0, '数学': 0, '英语': 0} student16 = {'语文': 0, '数学': 0, '英语': 0}
student17 = {'语文': 0, '数学': 0, '英语': 0} student17 = {'语文': 0, '数学': 0, '英语': 0}
student18 = {'语文': 0, '数学': 0, '英语': 0} student18 = {'语文': 0, '数学': 0, '英语': 0}
score = {'老师': student1, '1': student2, '2': student3'3': student4, '4': student5, '5': student6'6': student7, '7': student8, '8': student9'9': student10, '10': student11, '11': student12'12': student13, '13': student14, '14': student15'15': student16, '16': student17, '17': student18} score = {'老师': student1, 1: student2, 2: student33: student4, 4: student5, 5: student66: student7, 7: student8, 8: student99: student10, 10: student11, 11: student1212: student13, 13: student14, 14: student1515: student16, 16: student17, 17: student18}
while True: while True:
name = input("请输入要查询的名字") name = input("请输入要查询的名字,退出输入q")
\ No newline at end of file print("*" * 30)
if name in score:
info = score[name]
for k,v in info.items():
print(k,v)
print("*"*30)
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