Commit eabee64d by BellCodeEditor

save project

parent 4095c0a8
Showing with 15 additions and 9 deletions
......@@ -5,11 +5,17 @@ score = {'悟空': student1, '诺依': student2, '小贝': student3}
score=ssd
# 查询并打印出输入的
ssd=score["悟空"]["数学"]
print(ssd)
ss=score["诺依"]
for i,a in ss.items():
print(i,a)
\ No newline at end of file
while True:
print("输入q退出程序")
name=input["查谁"]
if name in score:
i=score[name]
for i,s in name.items
print(i,s)
print("*"*30)
if name=q:
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