“”"
练习:根据输入的季节获取对应的月份
“”"
while True:
dict_season = dict([
("春", (1, 2, 3)),
("夏", (4, 5, 6)),
("秋", (7, 8, 9)),
("冬", (10, 11, 12))
])
season = input("请输入季度:")
if season in dict_season:
for key, values in dict_season.items():
if key == season:
print(str(values)+"月份")
break
else:
print("输入有误!")
“”"
练习在控制台中录入多个学生的姓名、性别、成绩、年龄
“”"
dict_students_info = {
}
while True:
name = input