Commit 7649c17d by BellCodeEditor

save project

parent 793963ba
Showing with 13 additions and 11 deletions
......@@ -2,16 +2,17 @@ score0 = {'语文':110,'数学':0,'english':110 }
score1 = {'语文':10,'数学':90,'english':100 }
score2 = {'语文':1,'数学':110,'english':0 }
score = {'fgd':score0,'df':score1,'tt':score2}
name = input("名字: ")
print("*" * 30)
if name in score:
info = score[name]
for v,i in info.items():
print(v,i)
while True:
print("请输入名字,退出请输入q")
name = input("名字: ")
print("*" * 30)
elif name == 'q':
break
else:
print("查询错误,请输入正确的名字")
if name in score:
info = score[name]
for v,i in info.items():
print(v,i)
print("*" * 30)
elif 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