Commit abed13f6 by BellCodeEditor

save project

parent a508d09a
Showing with 11 additions and 2 deletions
...@@ -6,9 +6,18 @@ e={'语文':99,'数学':100,'英语':100} ...@@ -6,9 +6,18 @@ e={'语文':99,'数学':100,'英语':100}
f={'语文':100,'数学':78,'英语':75} f={'语文':100,'数学':78,'英语':75}
g={'语文':89,'数学':100,'英语':100} g={'语文':89,'数学':100,'英语':100}
dict={'赵苹果':a,'李山竹':b,'张香蕉':c,'王荔枝':d,'谢葡萄':e,'刘桂圆':f,'曹蓝莓':g} dict={'赵苹果':a,'李山竹':b,'张香蕉':c,'王荔枝':d,'谢葡萄':e,'刘桂圆':f,'曹蓝莓':g}
info=dict['张香蕉'] while True:
for k,v in info.items(): name = input("请输入要查询的名字:")
print("*"*30)
if name in dict:
info=dict[name]
for k,v in info.items():
print(k,v) print(k,v)
print("*"*30)
else name =='q'
break
else :
print("查询错误,请输入正确的名字")
......
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