Commit 7649c17d by BellCodeEditor

save project

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