Commit b6d0197a by BellCodeEditor

auto save

parent 02371cfe
Showing with 21 additions and 3 deletions
...@@ -9,7 +9,7 @@ goods = {'å¯å£å¯ä¹':3,'旺仔牛奶':4,'农夫山泉':1,'è¾£æ¡':3,'å·´è¥¿çƒ ...@@ -9,7 +9,7 @@ goods = {'å¯å£å¯ä¹':3,'旺仔牛奶':4,'农夫山泉':1,'è¾£æ¡':3,'巴西çƒ
#print(goods) #print(goods)
score = {'语文':91,'数学':88,'英语':85} #score = {'语文':91,'数学':88,'英语':85}
#for k,v in score.items(): #for k,v in score.items():
#print(k,v) #print(k,v)
...@@ -20,4 +20,22 @@ score = {'语文':91,'数学':88,'英语':85} ...@@ -20,4 +20,22 @@ score = {'语文':91,'数学':88,'英语':85}
#print(i) #print(i)
student1 = {'语文':91,'数学':87,'英语':95}
\ No newline at end of file student2 = {'语文':94,'数学':98,'英语':97}
student3 = {'语文':98,'数学':100,'英语':99}
score = {'小方':student1,'悟空':student2,'小明':student3}
while True:
name = input('你叫什么')
print('退出请按q')
print('*'*30)
if name in score:
info=score[name]
for k,v in info.items():
print(k,v)
print('*'*30)
elif name == 'q':
break
else:
print('查询错误,请输入正确的名字')
print('*'*30)
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