Commit 428def12 by BellCodeEditor

save project

parent 1957485e
Showing with 10 additions and 2 deletions
......@@ -2,7 +2,14 @@ score0 = {'语文':110,'数学':0,'english':110 }
score1 = {'语文':10,'数学':90,'english':100 }
score2 = {'语文':1,'数学':110,'english':0 }
score = {'fgd':score0,'df':score1,'tt':score2}
name = input("名字: ")
info = score[name]
for v,i in info.items():
print("*" * 30)
if name in score:
info = score[name]
for v,i in info.items():
print(v,i)
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