实验一:简易的学习调研系统
# 学习调研系统
Learning = input("最近学习了吗?YES/NO: ")
if Learning.upper() == 'YES':
print("very good")
while 1 == 1:
li_identifer = [1, 2, 3]
li_information = ["Python", "Higher Mathmatics", "Quit"]
# map 方式创建字典
# dic_information = map(lambda Key_inf, Value_inf: (Key_inf, Value_inf), li_identifer, li_information)
# print(dict(dic_information))
# zip 方式创建字典
'''
dict(iterable) -> new dictionary initialized as if via:
d = {}
for k, v in iterable:
d[k] = v
'''
for k, v in zip(li_identifer, li_information):
print(k, v)
# Choose_number = input("请输入学习选项: ")
# print("1、Python")
# print("2、Higher Mathmatics")
# print("3、Quit")
Choose_number = i