一、输入身份证号码输出对应省份
id_number = "4313212002"
province_code = id_number[0] + id_number[1]
province_code_list = {'43':"湖南"}
print("身份证号对应省份是:",province_code_list[province_code])
二、统计需要取快递人员名单
assemblage = {}
while True:name = input("请输入快递收件人的名字:")assemblage.add(name)print(assemblage)