标签: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