码迷,mamicode.com
首页 > 其他好文 > 详细

字典测试题员:工信息查询

时间:2019-10-08 15:58:34      阅读:79      评论:0      收藏:0      [点我收藏+]

标签:pre   name   信息   break   测试   ==   结束   经理   print   

keys = {"林青霞":{"age":20,"电话":18833333333,"职位":"老板","工资":250},
"张曼玉":{"age":25,"电话":18111111111,"职位":"经理","工资":251},
"高圆圆":{"age":21,"电话":19999999999,"职位":"销售","工资":252},
"刘亦菲":{"age":22,"电话":18888888888,"职位":"总监","工资":253},
}
k = "-----------------查询系统-----------------"
n = "------------------结束-------------------"
count = 0
while count < 1:
print(k)
name = input("输入你的姓名:")
print(keys.get(name,"查无此人"))
name_1 = input("是否继续y/n")
if name_1 == "y":
count = 0
elif name_1 == "n":
print(n)
break
else:
print(n)
break

字典测试题员:工信息查询

标签:pre   name   信息   break   测试   ==   结束   经理   print   

原文地址:https://www.cnblogs.com/745728806-qq/p/11635782.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!