#coding:utf-8 PROVINCE = ( (1, '北京市'), (2, '上海市'), (3, '香港'), (4, '台湾'), (5, '重庆市'), (6, '澳门'), (7, '天津市'), (8, '江苏省'), (9, '浙江省'), (10, '四川省'), (11, '江西省'), (12, '福建省'), (13, '青海省'), (14, '吉林省'), (15, '贵州省'), (16, '陕西省'), (17, '山西省'), (18, '河北省'), (19, '湖北省'), (20, '辽宁省'), (21, '湖南省'), (22, '山东省'), (23, '云南省'), (24, '河南省'), (25, '广东省'), (26, '安徽省'), (27, '甘肃省'), (28, '海南省'), (29, '黑龙江省'), (30, '内蒙古自治区'), (31, '新疆维吾尔自治区'), (32, '广西壮族自治区'), (33, '宁夏回族自治区'), (34, '西藏自治区') ) PROVINCE_DICT = dict(PROVINCE) COUNTRY = ( (1, '中国'), (2, '美国'), (3, '加拿大'), (4, '日本'), (5, 'Afghanistan'), (6, 'Algeria'), (7, 'Angola'), (8, 'Argentina'), (9, 'Armenia'), (10, 'Australia'), (11, 'Austria'), (12, 'Azerbaijan'), (13, 'Bangladesh'), (14, 'Belarus'), (15, 'Belgium'), (16, 'Bolivia'), (17, 'Brazil'), (18, 'Bulgaria'), (19, 'Burkina Faso'), (20, 'Cambodia'), (21, 'Cameroon'), (22, 'Chile'), (23, 'Colombia'), (24, 'Congo'), (25, 'Costa Rica'), (26, 'Cuba'), (27, 'Czech Republic'), (28, "Côte d'Ivoire"), (29, 'Denmark'), (30, 'Dominican Republic'), (31, 'Ecuador'), (32, 'Egypt'), (33, 'El Salvador'), (34, 'Ethiopia'), (35, 'Finland'), (36, 'France'), (37, 'Georgia'), (38, 'Germany'), (39, 'Ghana'), (40, 'Greece'), (41, 'Guatemala'), (42, 'Guinea'), (43, 'Haiti'), (44, 'India'), (45, 'Indonesia'), (46, 'Iran'), (47, 'Iraq'), (48, 'Ireland'), (49, 'Israel'), (50, 'Italy'), (51, 'Jordan'), (52, 'Kazakhstan'), (53, 'Kenya'), (54, 'Kuwait'), (55, 'Lebanon'), (56, 'Libya'), (57, 'Madagascar'), (58, 'Malaysia'), (59, 'Mali'), (60, 'Mexico'), (61, 'Montenegro'), (62, 'Morocco'), (63, 'Mozambique'), (64, 'Myanmar'), (65, 'Nepal'), (66, 'Netherlands'), (67, 'New Zealand'), (68, 'Nicaragua'), (69, 'Nigeria'), (70, 'North Korea'), (71, 'Norway'), (72, 'Pakistan'), (73, 'Palestinian Territories'), (74, 'Panama'), (75, 'Paraguay'), (76, 'Peru'), (77, 'Philippines'), (78, 'Poland'), (79, 'Portugal'), (80, 'Puerto Rico'), (81, 'Romania'), (82, 'Russia'), (83, 'Saudi Arabia'), (84, 'Senegal'), (85, 'Serbia'), (86, 'Sierra Leone'), (87, 'Singapore'), (88, 'Somalia'), (89, 'South Africa'), (90, 'South Korea'), (91, 'Spain'), (92, 'Sri Lanka'), (93, 'Sudan'), (94, 'Sweden'), (95, 'Switzerland'), (96, 'Syria'), (97, 'Tanzania'), (98, 'Thailand'), (99, 'Tunisia'), (100, 'Turkey'), (101, 'Ukraine'), (102, 'United Arab Emirates'), (103, 'United Kingdom'), (104, 'Uruguay'), (105, 'Uzbekistan'), (106, 'Venezuela'), (107, 'Vietnam'), (108, 'Yemen'), (109, 'Zambia'), (110, 'Zimbabwe') ) COUNTRY_DICT = dict(COUNTRY) CITY = { 8: ((1, '常州市'), (2, '连云港市'), (3, '泰州市'), (4, '南京市'), (5, '扬州市'), (6, '镇江市'), (7, '宿迁市'), (8, '盐城市'), (9, '徐州市'), (10, '南通市'), (11, '淮安市'), (12, '无锡市'), (13, '苏州市')), 9: ((14, '湖州市'), (15, '杭州市'), (16, '舟山市'), (17, '嘉兴市'), (18, '衢州市'), (19, '金华市'), (20, '宁波市'), (21, '台州市'), (24, '绍兴市')), 10: ((25, '广元市'), (26, '凉山彝族自治州'), (27, '绵阳市'), (28, '资阳市'), (29, '巴中市'), (30, '德阳市'), (31, '眉山市'), (32, '甘孜藏族自治州'), (33, '成都市'), (34, '乐山市'), (35, '阿坝藏族羌族自治州'), (36, '内江市'), (37, '自贡市'), (38, '攀枝花市'), (39, '达州市'), (40, '宜宾市'), (41, '泸州市'), (42, '遂宁市'), (43, '雅安市'), (44, '南充市'), (45, '广安市')), 11: ((46, '赣州市'), (47, '上饶市'), (48, '宜春市'), (49, '抚州市'), (50, '新余市'), (51, '吉安市'), (52, '南昌市'), (53, '鹰潭市'), (54, '景德镇市'), (55, '九江市'), (56, '萍乡市')), 12: ((57, '宁德市'), (58, '三明市'), (59, '福州市'), (60, '南平市'), (61, '龙岩市'), (62, '莆田市'), (63, '泉州市'), (64, '漳州市')), 13: ((65, '西宁市'), (66, '果洛藏族自治州'), (67, '海东地区'), (68, '黄南藏族自治州'), (69, '海南藏族自治州'), (70, '海北藏族自治州'), (71, '玉树藏族自治州'), (72, '海西蒙古族藏族自治州')), 14: ((73, '辽源市'), (74, '延边朝鲜族自治州'), (75, '白城市'), (76, '四平市'), (77, '长春市'), (78, '通化市'), (79, '吉林市'), (80, '白山市'), (81, '松原市')), 15: ((82, '黔南布依族苗族自治州'), (83, '六盘水市'), (84, '贵阳市'), (85, '遵义市'), (86, '铜仁地区'), (87, '毕节地区'), (88, '安顺市'), (89, '黔东南苗族侗族自治州'), (90, '黔西南布依族苗族自治州')), 16: ((91, '西安市'), (92, '延安市'), (93, '汉中市'), (94, '宝鸡市'), (95, '榆林市'), (96, '渭南市'), (97, '咸阳市'), (98, '安康市'), (99, '铜川市'), (100, '商洛市')), 17: ((101, '晋城市'), (102, '晋中市'), (103, '阳泉市'), (104, '忻州市'), (105, '朔州市'), (106, '大同市'), (107, '运城市'), (108, '太原市'), (109, '吕梁市'), (110, '临汾市'), (111, '长治市')), 18: ((112, '廊坊市'), (113, '衡水市'), (114, '邢台市'), (115, '石家庄市'), (116, '沧州市'), (117, '保定市'), (118, '邯郸市'), (119, '张家口市'), (120, '承德市'), (121, '唐山市'), (122, '秦皇岛市')), 19: ((123, '荆门市'), (124, '十堰市'), (125, '荆州市'), (126, '恩施土家族苗族自治州'), (127, '随州市'), (128, '黄冈市'), (129, '咸宁市'), (130, '宜昌市'), (131, '襄樊市'), (132, '孝感市'), (133, '黄石市')), 20: ((134, '营口市'), (135, '沈阳市'), (136, '辽阳市'), (137, '大连市'), (138, '朝阳市'), (139, '抚顺市'), (140, '本溪市'), (141, '鞍山市'), (142, '葫芦岛市'), (143, '盘锦市'), (144, '丹东市'), (145, '锦州市'), (146, '阜新市'), (147, '铁岭市')), 21: ((148, '怀化市'), (149, '长沙市'), (150, '常德市'), (151, '岳阳市'), (152, '株洲市'), (153, '湘西土家族苗族自治州'), (154, '张家界市'), (155, '湘潭市'), (156, '益阳市'), (157, '娄底市'), (158, '衡阳市'), (159, '郴州市'), (160, '永州市'), (161, '邵阳市')), 22: ((162, '枣庄市'), (163, '德州市'), (164, '济南市'), (165, '济宁市'), (166, '菏泽市'), (167, '滨州市'), (168, '烟台市'), (169, '潍坊市'), (170, '聊城市'), (171, '日照市'), (172, '泰安市'), (173, '东营市'), (174, '临沂市'), (175, '青岛市'), (176, '威海市'), (177, '淄博市')), 23: ((178, '玉溪市'), (179, '曲靖市'), (180, '西双版纳傣族自治州'), (181, '文山壮族苗族自治州'), (182, '德宏傣族景颇族自治州'), (183, '保山市'), (184, '昭通市'), (185, '迪庆藏族自治州'), (186, '普洱市'), (187, '昆明市'), (188, '丽江市'), (189, '楚雄彝族自治州'), (190, '红河哈尼族彝族自治州'), (191, '临沧市'), (192, '怒江傈僳族自治州'), (193, '大理白族自治州')), 24: ((194, '新乡市'), (195, '驻马店市'), (196, '南阳市'), (197, '漯河市'), (198, '安阳市'), (199, '平顶山市'), (200, '商丘市'), (201, '开封市'), (202, '郑州市'), (203, '濮阳市'), (204, '三门峡市'), (205, '周口市'), (206, '焦作市'), (207, '信阳市'), (208, '许昌市'), (209, '洛阳市')), 25: ((210, '广州市'), (211, '湛江市'), (212, '汕尾市'), (213, '汕头市'), (214, '梅州市'), (215, '云浮市'), (216, '阳江市'), (217, '清远市'), (218, '茂名市'), (219, '揭阳市'), (220, '惠州市'), (221, '潮州市'), (222, '河源市'), (223, '韶关市'), (224, '肇庆市'), (225, '江门市')), 26: ((226, '六安市'), (227, '淮南市'), (228, '铜陵市'), (229, '宣城市'), (230, '阜阳市'), (231, '宿州市'), (232, '滁州市'), (233, '黄山市'), (234, '蚌埠市'), (235, '淮北市'), (236, '安庆市'), (237, '亳州市'), (238, '马鞍山市'), (239, '巢湖市'), (240, '芜湖市'), (241, '池州市'), (242, '合肥市')), 27: ((243, '临夏回族自治州'), (244, '白银市'), (245, '陇南市'), (246, '金昌市'), (247, '兰州市'), (248, '武威市'), (249, '定西市'), (250, '酒泉市'), (251, '甘南藏族自治州'), (252, '庆阳市'), (253, '天水市'), (254, '张掖市'), (255, '平凉市')), 29: ((256, '齐齐哈尔市'), (257, '大兴安岭地区'), (258, '鸡西市'), (259, '黑河市'), (260, '佳木斯市'), (261, '哈尔滨市'), (262, '牡丹江市'), (263, '双鸭山市'), (264, '七台河市'), (265, '大庆市'), (266, '绥化市'), (267, '伊春市'), (268, '鹤岗市')), 30: ((269, '兴安盟'), (270, '呼伦贝尔市'), (271, '乌兰察布市'), (272, '巴彦淖尔市'), (273, '锡林郭勒盟'), (274, '鄂尔多斯市'), (275, '通辽市'), (276, '赤峰市'), (277, '呼和浩特市'), (278, '阿拉善盟'), (279, '包头市')), 31: ((280, '伊犁哈萨克自治州'), (281, '博尔塔拉蒙古自治州'), (282, '巴音郭楞蒙古自治州'), (283, '乌鲁木齐市'), (284, '和田地区'), (285, '喀什地区'), (286, '哈密地区'), (287, '阿勒泰地区'), (288, '克孜勒苏柯尔克孜自治州'), (289, '昌吉回族自治州'), (290, '阿克苏地区'), (291, '吐鲁番地区'), (292, '塔城地区')), 32: ((293, '贵港市'), (294, '河池市'), (295, '贺州市'), (296, '柳州市'), (297, '北海市'), (298, '玉林市'), (299, '桂林市'), (300, '百色市'), (301, '钦州市'), (302, '梧州市'), (303, '来宾市'), (304, '崇左市'), (305, '南宁市'), (306, '防城港市')), 33: ((307, '石嘴山市'), (308, '中卫市'), (309, '吴忠市'), (310, '固原市'), (311, '银川市')), 34: ((312, '那曲地区'), (313, '昌都地区'), (314, '拉萨市'), (315, '山南地区'), (316, '林芝地区'), (317, '日喀则地区'), (318, '阿里地区')) } TOWN = { 1: ((1, '市辖区'), (2, '溧阳市'), (3, '金坛市')), 2: ((4, '市辖区'), (5, '赣榆县'), (6, '东海县'), (7, '灌云县'), (8, '灌南县')), 3: ((9, '市辖区'), (10, '兴化市'), (11, '靖江市'), (12, '泰兴市'), (13, '姜堰市')), 4: ((14, '市辖区'), (15, '溧水县'), (16, '高淳县')), 5: ((17, '市辖区'), (18, '宝应县'), (19, '仪征市'), (20, '高邮市'), (21, '江都市')), 6: ((22, '市辖区'), (23, '丹阳市'), (24, '扬中市'), (25, '句容市')), 7: ((26, '市辖区'), (27, '沭阳县'), (28, '泗阳县'), (29, '泗洪县')), 8: ((30, '市辖区'), (31, '响水县'), (32, '滨海县'), (33, '阜宁县'), (34, '射阳县'), (35, '建湖县'), (36, '东台市'), (37, '大丰市')), 9: ((38, '市辖区'), (39, '铜山县'), (40, '睢宁县'), (41, '新沂市'), (42, '邳州市')), 10: ((43, '市辖区'), (44, '海安县'), (45, '如东县'), (46, '启东市'), (47, '如皋市'), (48, '通州市'), (49, '海门市')), 11: ((50, '市辖区'), (51, '涟水县'), (52, '洪泽县'), (53, '盱眙县'), (54, '金湖县')), 12: ((55, '市辖区'), (56, '江阴市'), (57, '宜兴市')), 13: ((58, '市辖区'), (59, '常熟市'), (60, '张家港市'), (61, '昆山市'), (62, '吴江市'), (63, '太仓市')), 14: ((64, '市辖区'), (65, '德清县'), (66, '长兴县'), (67, '安吉县')), 15: ((68, '市辖区'), (69, '桐庐县'), (70, '淳安县'), (71, '建德市'), (72, '富阳市'), (73, '临安市')), 16: ((74, '市辖区'), (75, '岱山县'), (76, '嵊泗县')), 17: ((77, '市辖区'), (78, '嘉善县'), (79, '海盐县'), (80, '海宁市'), (81, '平湖市'), (82, '桐乡市')), 18: ((83, '市辖区'), (84, '常山县'), (85, '开化县'), (86, '龙游县'), (87, '江山市')), 19: ((88, '市辖区'), (89, '武义县'), (90, '浦江县'), (91, '磐安县'), (92, '兰溪市'), (93, '义乌市'), (94, '东阳市'), (95, '永康市')), 20: ((96, '市辖区'), (97, '象山县'), (98, '宁海县'), (99, '余姚市'), (100, '慈溪市'), (101, '奉化市')), 21: ((102, '市辖区'), (103, '玉环县'), (104, '三门县'), (105, '天台县'), (106, '仙居县'), (107, '温岭市'), (108, '临海市')), 22: ((109, '市辖区'), (110, '洞头县'), (111, '永嘉县'), (112, '平阳县'), (113, '苍南县'), (114, '文成县'), (115, '泰顺县'), (116, '瑞安市'), (117, '乐清市')), 23: ((118, '市辖区'), (119, '青田县'), (120, '缙云县'), (121, '遂昌县'), (122, '松阳县'), (123, '云和县'), (124, '庆元县'), (125, '景宁畲族自治县'), (126, '龙泉市')), 24: ((127, '市辖区'), (128, '绍兴县'), (129, '新昌县'), (130, '诸暨市'), (131, '上虞市'), (132, '嵊州市')), 25: ((133, '市辖区'), (134, '旺苍县'), (135, '青川县'), (136, '剑阁县'), (137, '苍溪县')), 26: ((138, '西昌市'), (139, '木里藏族自治县'), (140, '盐源县'), (141, '德昌县'), (142, '会理县'), (143, '会东县'), (144, '宁南县'), (145, '普格县'), (146, '布拖县'), (147, '金阳县'), (148, '昭觉县'), (149, '喜德县'), (150, '冕宁县'), (151, '越西县'), (152, '甘洛县'), (153, '美姑县'), (154, '雷波县')), 27: ((155, '市辖区'), (156, '三台县'), (157, '盐亭县'), (158, '安县'), (159, '梓潼县'), (160, '北川羌族自治县'), (161, '平武县'), (162, '江油市')), 28: ((163, '市辖区'), (164, '安岳县'), (165, '乐至县'), (166, '简阳市')), 29: ((167, '市辖区'), (168, '通江县'), (169, '南江县'), (170, '平昌县')), 30: ((171, '市辖区'), (172, '中江县'), (173, '罗江县'), (174, '广汉市'), (175, '什邡市'), (176, '绵竹市')), 31: ((177, '市辖区'), (178, '仁寿县'), (179, '彭山县'), (180, '洪雅县'), (181, '丹棱县'), (182, '青神县')), 32: ((183, '康定县'), (184, '泸定县'), (185, '丹巴县'), (186, '九龙县'), (187, '雅江县'), (188, '道孚县'), (189, '炉霍县'), (190, '甘孜县'), (191, '新龙县'), (192, '德格县'), (193, '白玉县'), (194, '石渠县'), (195, '色达县'), (196, '理塘县'), (197, '巴塘县'), (198, '乡城县'), (199, '稻城县'), (200, '得荣县')), 33: ((201, '市辖区'), (202, '金堂县'), (203, '双流县'), (204, '郫县'), (205, '大邑县'), (206, '蒲江县'), (207, '新津县'), (208, '都江堰市'), (209, '彭州市'), (210, '邛崃市'), (211, '崇州市')), 34: ((212, '市辖区'), (213, '犍为县'), (214, '井研县'), (215, '夹江县'), (216, '沐川县'), (217, '峨边彝族自治县'), (218, '马边彝族自治县'), (219, '峨眉山市')), 35: ((220, '汶川县'), (221, '理县'), (222, '茂县'), (223, '松潘县'), (224, '九寨沟县'), (225, '金川县'), (226, '小金县'), (227, '黑水县'), (228, '马尔康县'), (229, '壤塘县'), (230, '阿坝县'), (231, '若尔盖县'), (232, '红原县')), 36: ((233, '市辖区'), (234, '威远县'), (235, '资中县'), (236, '隆昌县')), 37: ((237, '市辖区'), (238, '富顺县')), 38: ((239, '市辖区'), (240, '米易县'), (241, '盐边县')), 39: ((242, '市辖区'), (243, '宣汉县'), (244, '开江县'), (245, '大竹县'), (246, '渠县'), (247, '万源市')), 40: ((248, '市辖区'), (249, '宜宾县'), (250, '南溪县'), (251, '江安县'), (252, '长宁县'), (253, '高县'), (254, '珙县'), (255, '筠连县'), (256, '兴文县'), (257, '屏山县')), 41: ((258, '市辖区'), (259, '合江县'), (260, '叙永县'), (261, '古蔺县')), 42: ((262, '市辖区'), (263, '蓬溪县'), (264, '射洪县'), (265, '大英县')), 43: ((266, '市辖区'), (267, '名山县'), (268, '荥经县'), (269, '汉源县'), (270, '石棉县'), (271, '天全县'), (272, '芦山县'), (273, '宝兴县')), 44: ((274, '市辖区'), (275, '南部县'), (276, '营山县'), (277, '蓬安县'), (278, '仪陇县'), (279, '西充县'), (280, '阆中市')), 45: ((281, '市辖区'), (282, '岳池县'), (283, '武胜县'), (284, '邻水县'), (285, '华蓥市')), 46: ((286, '市辖区'), (287, '信丰县'), (288, '大余县'), (289, '上犹县'), (290, '崇义县'), (291, '安远县'), (292, '龙南县'), (293, '定南县'), (294, '全南县'), (295, '宁都县'), (296, '于都县'), (297, '兴国县'), (298, '会昌县'), (299, '寻乌县'), (300, '石城县'), (301, '瑞金市'), (302, '南康市')), 47: ((303, '市辖区'), (304, '上饶县'), (305, '广丰县'), (306, '玉山县'), (307, '铅山县'), (308, '横峰县'), (309, '弋阳县'), (310, '余干县'), (311, '鄱阳县'), (312, '万年县'), (313, '婺源县'), (314, '德兴市')), 48: ((315, '市辖区'), (316, '奉新县'), (317, '万载县'), (318, '上高县'), (319, '宜丰县'), (320, '靖安县'), (321, '铜鼓县'), (322, '丰城市'), (323, '樟树市'), (324, '高安市')), 49: ((325, '市辖区'), (326, '南城县'), (327, '黎川县'), (328, '南丰县'), (329, '崇仁县'), (330, '乐安县'), (331, '宜黄县'), (332, '金溪县'), (333, '资溪县'), (334, '东乡县'), (335, '广昌县')), 50: ((336, '市辖区'), (337, '分宜县')), 51: ((338, '市辖区'), (339, '吉安县'), (340, '吉水县'), (341, '峡江县'), (342, '新干县'), (343, '永丰县'), (344, '泰和县'), (345, '遂川县'), (346, '万安县'), (347, '安福县'), (348, '永新县'), (349, '井冈山市')), 52: ((350, '市辖区'), (351, '南昌县'), (352, '新建县'), (353, '安义县'), (354, '进贤县')), 53: ((355, '市辖区'), (356, '余江县'), (357, '贵溪市')), 54: ((358, '市辖区'), (359, '浮梁县'), (360, '乐平市')), 55: ((361, '市辖区'), (362, '九江县'), (363, '武宁县'), (364, '修水县'), (365, '永修县'), (366, '德安县'), (367, '星子县'), (368, '都昌县'), (369, '湖口县'), (370, '彭泽县'), (371, '瑞昌市')), 56: ((372, '市辖区'), (373, '莲花县'), (374, '上栗县'), (375, '芦溪县')), 57: ((376, '市辖区'), (377, '霞浦县'), (378, '古田县'), (379, '屏南县'), (380, '寿宁县'), (381, '周宁县'), (382, '柘荣县'), (383, '福安市'), (384, '福鼎市')), 58: ((385, '市辖区'), (386, '明溪县'), (387, '清流县'), (388, '宁化县'), (389, '大田县'), (390, '尤溪县'), (391, '沙县'), (392, '将乐县'), (393, '泰宁县'), (394, '建宁县'), (395, '永安市')), 59: ((396, '市辖区'), (397, '闽侯县'), (398, '连江县'), (399, '罗源县'), (400, '闽清县'), (401, '永泰县'), (402, '平潭县'), (403, '福清市'), (404, '长乐市')), 60: ((405, '市辖区'), (406, '顺昌县'), (407, '浦城县'), (408, '光泽县'), (409, '松溪县'), (410, '政和县'), (411, '邵武市'), (412, '武夷山市'), (413, '建瓯市'), (414, '建阳市')), 61: ((415, '市辖区'), (416, '长汀县'), (417, '永定县'), (418, '上杭县'), (419, '武平县'), (420, '连城县'), (421, '漳平市')), 62: ((422, '市辖区'), (423, '仙游县')), 63: ((424, '市辖区'), (425, '惠安县'), (426, '安溪县'), (427, '永春县'), (428, '德化县'), (429, '金门县'), (430, '石狮市'), (431, '晋江市'), (432, '南安市')), 64: ((433, '市辖区'), (434, '云霄县'), (435, '漳浦县'), (436, '诏安县'), (437, '长泰县'), (438, '东山县'), (439, '南靖县'), (440, '平和县'), (441, '华安县'), (442, '龙海市')), 65: ((443, '市辖区'), (444, '大通回族土族自治县'), (445, '湟中县'), (446, '湟源县')), 66: ((447, '玛沁县'), (448, '班玛县'), (449, '甘德县'), (450, '达日县'), (451, '久治县'), (452, '玛多县')), 67: ((453, '平安县'), (454, '民和回族土族自治县'), (455, '乐都县'), (456, '互助土族自治县'), (457, '化隆回族自治县'), (458, '循化撒拉族自治县')), 68: ((459, '同仁县'), (460, '尖扎县'), (461, '泽库县'), (462, '河南蒙古族自治县')), 69: ((463, '共和县'), (464, '同德县'), (465, '贵德县'), (466, '兴海县'), (467, '贵南县')), 70: ((468, '门源回族自治县'), (469, '祁连县'), (470, '海晏县'), (471, '刚察县')), 71: ((472, '玉树县'), (473, '杂多县'), (474, '称多县'), (475, '治多县'), (476, '囊谦县'), (477, '曲麻莱县')), 72: ((478, '格尔木市'), (479, '德令哈市'), (480, '乌兰县'), (481, '都兰县'), (482, '天峻县')), 73: ((483, '市辖区'), (484, '东丰县'), (485, '东辽县')), 74: ((486, '延吉市'), (487, '图们市'), (488, '敦化市'), (489, '珲春市'), (490, '龙井市'), (491, '和龙市'), (492, '汪清县'), (493, '安图县')), 75: ((494, '市辖区'), (495, '镇赉县'), (496, '通榆县'), (497, '洮南市'), (498, '大安市')), 76: ((499, '市辖区'), (500, '梨树县'), (501, '伊通满族自治县'), (502, '公主岭市'), (503, '双辽市')), 77: ((504, '市辖区'), (505, '农安县'), (506, '九台市'), (507, '榆树市'), (508, '德惠市')), 78: ((509, '市辖区'), (510, '通化县'), (511, '辉南县'), (512, '柳河县'), (513, '梅河口市'), (514, '集安市')), 79: ((515, '市辖区'), (516, '永吉县'), (517, '蛟河市'), (518, '桦甸市'), (519, '舒兰市'), (520, '磐石市')), 80: ((521, '市辖区'), (522, '江源区'), (523, '抚松县'), (524, '靖宇县'), (525, '长白朝鲜族自治县'), (526, '临江市')), 81: ((527, '市辖区'), (528, '前郭尔罗斯蒙古族自治县'), (529, '长岭县'), (530, '乾安县'), (531, '扶余县')), 82: ((532, '都匀市'), (533, '福泉市'), (534, '荔波县'), (535, '贵定县'), (536, '瓮安县'), (537, '独山县'), (538, '平塘县'), (539, '罗甸县'), (540, '长顺县'), (541, '龙里县'), (542, '惠水县'), (543, '三都水族自治县')), 83: ((544, '钟山区'), (545, '六枝特区'), (546, '水城县'), (547, '盘县')), 84: ((548, '市辖区'), (549, '开阳县'), (550, '息烽县'), (551, '修文县'), (552, '清镇市')), 85: ((553, '市辖区'), (554, '遵义县'), (555, '桐梓县'), (556, '绥阳县'), (557, '正安县'), (558, '道真仡佬族苗族自治县'), (559, '务川仡佬族苗族自治县'), (560, '凤冈县'), (561, '湄潭县'), (562, '余庆县'), (563, '习水县'), (564, '赤水市'), (565, '仁怀市')), 86: ((566, '铜仁市'), (567, '江口县'), (568, '玉屏侗族自治县'), (569, '石阡县'), (570, '思南县'), (571, '印江土家族苗族自治县'), (572, '德江县'), (573, '沿河土家族自治县'), (574, '松桃苗族自治县'), (575, '万山特区')), 87: ((576, '毕节市'), (577, '大方县'), (578, '黔西县'), (579, '金沙县'), (580, '织金县'), (581, '纳雍县'), (582, '威宁彝族回族苗族自治县'), (583, '赫章县')), 88: ((584, '市辖区'), (585, '平坝县'), (586, '普定县'), (587, '镇宁布依族苗族自治县'), (588, '关岭布依族苗族自治县'), (589, '紫云苗族布依族自治县')), 89: ((590, '凯里市'), (591, '黄平县'), (592, '施秉县'), (593, '三穗县'), (594, '镇远县'), (595, '岑巩县'), (596, '天柱县'), (597, '锦屏县'), (598, '剑河县'), (599, '台江县'), (600, '黎平县'), (601, '榕江县'), (602, '从江县'), (603, '雷山县'), (604, '麻江县'), (605, '丹寨县')), 90: ((606, '兴义市'), (607, '兴仁县'), (608, '普安县'), (609, '晴隆县'), (610, '贞丰县'), (611, '望谟县'), (612, '册亨县'), (613, '安龙县')), 91: ((614, '市辖区'), (615, '蓝田县'), (616, '周至县'), (617, '户县'), (618, '高陵县')), 92: ((619, '市辖区'), (620, '延长县'), (621, '延川县'), (622, '子长县'), (623, '安塞县'), (624, '志丹县'), (625, '吴起县'), (626, '甘泉县'), (627, '富县'), (628, '洛川县'), (629, '宜川县'), (630, '黄龙县'), (631, '黄陵县')), 93: ((632, '市辖区'), (633, '南郑县'), (634, '城固县'), (635, '洋县'), (636, '西乡县'), (637, '勉县'), (638, '宁强县'), (639, '略阳县'), (640, '镇巴县'), (641, '留坝县'), (642, '佛坪县')), 94: ((643, '市辖区'), (644, '凤翔县'), (645, '岐山县'), (646, '扶风县'), (647, '眉县'), (648, '陇县'), (649, '千阳县'), (650, '麟游县'), (651, '凤县'), (652, '太白县')), 95: ((653, '市辖区'), (654, '神木县'), (655, '府谷县'), (656, '横山县'), (657, '靖边县'), (658, '定边县'), (659, '绥德县'), (660, '米脂县'), (661, '佳县'), (662, '吴堡县'), (663, '清涧县'), (664, '子洲县')), 96: ((665, '市辖区'), (666, '潼关县'), (667, '大荔县'), (668, '合阳县'), (669, '澄城县'), (670, '蒲城县'), (671, '白水县'), (672, '富平县'), (673, '韩城市'), (674, '华阴市')), 97: ((675, '市辖区'), (676, '三原县'), (677, '泾阳县'), (678, '乾县'), (679, '礼泉县'), (680, '永寿县'), (681, '彬县'), (682, '长武县'), (683, '旬邑县'), (684, '淳化县'), (685, '武功县'), (686, '兴平市')), 98: ((687, '市辖区'), (688, '汉阴县'), (689, '石泉县'), (690, '宁陕县'), (691, '紫阳县'), (692, '岚皋县'), (693, '平利县'), (694, '镇坪县'), (695, '旬阳县'), (696, '白河县')), 99: ((697, '市辖区'), (698, '宜君县')), 100: ((699, '市辖区'), (700, '洛南县'), (701, '丹凤县'), (702, '商南县'), (703, '山阳县'), (704, '镇安县'), (705, '柞水县')), 101: ((706, '市辖区'), (707, '沁水县'), (708, '阳城县'), (709, '陵川县'), (710, '泽州县'), (711, '高平市')), 102: ((712, '市辖区'), (713, '榆社县'), (714, '左权县'), (715, '和顺县'), (716, '昔阳县'), (717, '寿阳县'), (718, '太谷县'), (719, '祁县'), (720, '平遥县'), (721, '灵石县'), (722, '介休市')), 103: ((723, '市辖区'), (724, '平定县'), (725, '盂县')), 104: ((726, '市辖区'), (727, '定襄县'), (728, '五台县'), (729, '代县'), (730, '繁峙县'), (731, '宁武县'), (732, '静乐县'), (733, '神池县'), (734, '五寨县'), (735, '岢岚县'), (736, '河曲县'), (737, '保德县'), (738, '偏关县'), (739, '原平市')), 105: ((740, '市辖区'), (741, '山阴县'), (742, '应县'), (743, '右玉县'), (744, '怀仁县')), 106: ((745, '市辖区'), (746, '阳高县'), (747, '天镇县'), (748, '广灵县'), (749, '灵丘县'), (750, '浑源县'), (751, '左云县'), (752, '大同县')), 107: ((753, '市辖区'), (754, '临猗县'), (755, '万荣县'), (756, '闻喜县'), (757, '稷山县'), (758, '新绛县'), (759, '绛县'), (760, '垣曲县'), (761, '夏县'), (762, '平陆县'), (763, '芮城县'), (764, '永济市'), (765, '河津市')), 108: ((766, '市辖区'), (767, '清徐县'), (768, '阳曲县'), (769, '娄烦县'), (770, '古交市')), 109: ((771, '市辖区'), (772, '文水县'), (773, '交城县'), (774, '兴县'), (775, '临县'), (776, '柳林县'), (777, '石楼县'), (778, '岚县'), (779, '方山县'), (780, '中阳县'), (781, '交口县'), (782, '孝义市'), (783, '汾阳市')), 110: ((784, '市辖区'), (785, '曲沃县'), (786, '翼城县'), (787, '襄汾县'), (788, '洪洞县'), (789, '古县'), (790, '安泽县'), (791, '浮山县'), (792, '吉县'), (793, '乡宁县'), (794, '大宁县'), (795, '隰县'), (796, '永和县'), (797, '蒲县'), (798, '汾西县'), (799, '侯马市'), (800, '霍州市')), 111: ((801, '市辖区'), (802, '长治县'), (803, '襄垣县'), (804, '屯留县'), (805, '平顺县'), (806, '黎城县'), (807, '壶关县'), (808, '长子县'), (809, '武乡县'), (810, '沁县'), (811, '沁源县'), (812, '潞城市')), 112: ((813, '市辖区'), (814, '固安县'), (815, '永清县'), (816, '香河县'), (817, '大城县'), (818, '文安县'), (819, '大厂回族自治县'), (820, '霸州市'), (821, '三河市')), 113: ((822, '市辖区'), (823, '枣强县'), (824, '武邑县'), (825, '武强县'), (826, '饶阳县'), (827, '安平县'), (828, '故城县'), (829, '景县'), (830, '阜城县'), (831, '冀州市'), (832, '深州市')), 114: ((833, '市辖区'), (834, '邢台县'), (835, '临城县'), (836, '内丘县'), (837, '柏乡县'), (838, '隆尧县'), (839, '任县'), (840, '南和县'), (841, '宁晋县'), (842, '巨鹿县'), (843, '新河县'), (844, '广宗县'), (845, '平乡县'), (846, '威县'), (847, '清河县'), (848, '临西县'), (849, '南宫市'), (850, '沙河市')), 115: ((851, '市辖区'), (852, '井陉县'), (853, '正定县'), (854, '栾城县'), (855, '行唐县'), (856, '灵寿县'), (857, '高邑县'), (858, '深泽县'), (859, '赞皇县'), (860, '无极县'), (861, '平山县'), (862, '元氏县'), (863, '赵县'), (864, '辛集市'), (865, '藁城市'), (866, '晋州市'), (867, '新乐市'), (868, '鹿泉市')), 116: ((869, '市辖区'), (870, '东光县'), (871, '海兴县'), (872, '盐山县'), (873, '肃宁县'), (874, '南皮县'), (875, '吴桥县'), (876, '献县'), (877, '孟村回族自治县'), (878, '泊头市'), (879, '任丘市'), (880, '黄骅市'), (881, '河间市')), 117: ((882, '市辖区'), (883, '满城县'), (884, '清苑县'), (885, '涞水县'), (886, '阜平县'), (887, '徐水县'), (888, '定兴县'), (889, '唐县'), (890, '高阳县'), (891, '容城县'), (892, '涞源县'), (893, '望都县'), (894, '安新县'), (895, '易县'), (896, '曲阳县'), (897, '蠡县'), (898, '顺平县'), (899, '博野县'), (900, '雄县'), (901, '涿州市'), (902, '定州市'), (903, '安国市'), (904, '高碑店市')), 118: ((905, '市辖区'), (906, '邯郸县'), (907, '临漳县'), (908, '成安县'), (909, '大名县'), (910, '涉县'), (911, '磁县'), (912, '肥乡县'), (913, '永年县'), (914, '邱县'), (915, '鸡泽县'), (916, '广平县'), (917, '馆陶县'), (918, '魏县'), (919, '曲周县'), (920, '武安市')), 119: ((921, '市辖区'), (922, '宣化县'), (923, '张北县'), (924, '康保县'), (925, '沽源县'), (926, '尚义县'), (927, '蔚县'), (928, '阳原县'), (929, '怀安县'), (930, '万全县'), (931, '怀来县'), (932, '涿鹿县'), (933, '赤城县'), (934, '崇礼县')), 120: ((935, '市辖区'), (936, '承德县'), (937, '兴隆县'), (938, '平泉县'), (939, '滦平县'), (940, '隆化县'), (941, '丰宁满族自治县'), (942, '宽城满族自治县'), (943, '围场满族蒙古族自治县')), 121: ((944, '市辖区'), (945, '滦南县'), (946, '乐亭县'), (947, '迁西县'), (948, '玉田县'), (949, '唐海县'), (950, '遵化市'), (951, '迁安市')), 122: ((952, '市辖区'), (953, '青龙满族自治县'), (954, '昌黎县'), (955, '抚宁县'), (956, '卢龙县')), 123: ((957, '市辖区'), (958, '京山县'), (959, '沙洋县'), (960, '钟祥市')), 124: ((961, '市辖区'), (962, '郧西县'), (963, '竹山县'), (964, '竹溪县'), (965, '房县'), (966, '丹江口市')), 125: ((967, '市辖区'), (968, '公安县'), (969, '监利县'), (970, '江陵县'), (971, '石首市'), (972, '洪湖市'), (973, '松滋市')), 126: ((974, '恩施市'), (975, '利川市'), (976, '建始县'), (977, '巴东县'), (978, '宣恩县'), (979, '咸丰县'), (980, '来凤县'), (981, '鹤峰县')), 127: ((982, '市辖区'), (983, '广水市')), 128: ((984, '市辖区'), (985, '团风县'), (986, '红安县'), (987, '罗田县'), (988, '英山县'), (989, '浠水县'), (990, '蕲春县'), (991, '黄梅县'), (992, '麻城市'), (993, '武穴市')), 129: ((994, '市辖区'), (995, '嘉鱼县'), (996, '通城县'), (997, '崇阳县'), (998, '通山县'), (999, '赤壁市')), 130: ((1000, '市辖区'), (1001, '远安县'), (1002, '兴山县'), (1003, '秭归县'), (1004, '长阳土家族自治县'), (1005, '五峰土家族自治县'), (1006, '宜都市'), (1007, '当阳市'), (1008, '枝江市')), 131: ((1009, '市辖区'), (1010, '南漳县'), (1011, '谷城县'), (1012, '保康县'), (1013, '老河口市'), (1014, '枣阳市'), (1015, '宜城市')), 132: ((1016, '市辖区'), (1017, '孝昌县'), (1018, '大悟县'), (1019, '云梦县'), (1020, '应城市'), (1021, '安陆市'), (1022, '汉川市')), 133: ((1023, '市辖区'), (1024, '阳新县'), (1025, '大冶市')), 134: ((1026, '市辖区'), (1027, '盖州市'), (1028, '大石桥市')), 135: ((1029, '市辖区'), (1030, '辽中县'), (1031, '康平县'), (1032, '法库县'), (1033, '新民市')), 136: ((1034, '市辖区'), (1035, '辽阳县'), (1036, '灯塔市')), 137: ((1037, '市辖区'), (1038, '长海县'), (1039, '瓦房店市'), (1040, '普兰店市'), (1041, '庄河市')), 138: ((1042, '市辖区'), (1043, '朝阳县'), (1044, '建平县'), (1045, '喀喇沁左翼蒙古族自治县'), (1046, '北票市'), (1047, '凌源市')), 139: ((1048, '市辖区'), (1049, '抚顺县'), (1050, '新宾满族自治县'), (1051, '清原满族自治县')), 140: ((1052, '市辖区'), (1053, '本溪满族自治县'), (1054, '桓仁满族自治县')), 141: ((1055, '市辖区'), (1056, '台安县'), (1057, '岫岩满族自治县'), (1058, '海城市')), 142: ((1059, '市辖区'), (1060, '绥中县'), (1061, '建昌县'), (1062, '兴城市')), 143: ((1063, '市辖区'), (1064, '大洼县'), (1065, '盘山县')), 144: ((1066, '市辖区'), (1067, '宽甸满族自治县'), (1068, '东港市'), (1069, '凤城市')), 145: ((1070, '市辖区'), (1071, '黑山县'), (1072, '义县'), (1073, '凌海市'), (1074, '北镇市')), 146: ((1075, '市辖区'), (1076, '阜新蒙古族自治县'), (1077, '彰武县')), 147: ((1078, '市辖区'), (1079, '铁岭县'), (1080, '西丰县'), (1081, '昌图县'), (1082, '调兵山市'), (1083, '开原市')), 148: ((1084, '市辖区'), (1085, '中方县'), (1086, '沅陵县'), (1087, '辰溪县'), (1088, '溆浦县'), (1089, '会同县'), (1090, '麻阳苗族自治县'), (1091, '新晃侗族自治县'), (1092, '芷江侗族自治县'), (1093, '靖州苗族侗族自治县'), (1094, '通道侗族自治县'), (1095, '洪江市')), 149: ((1096, '市辖区'), (1097, '长沙县'), (1098, '望城县'), (1099, '宁乡县'), (1100, '浏阳市')), 150: ((1101, '市辖区'), (1102, '安乡县'), (1103, '汉寿县'), (1104, '澧县'), (1105, '临澧县'), (1106, '桃源县'), (1107, '石门县'), (1108, '津市市')), 151: ((1109, '市辖区'), (1110, '岳阳县'), (1111, '华容县'), (1112, '湘阴县'), (1113, '平江县'), (1114, '汨罗市'), (1115, '临湘市')), 152: ((1116, '市辖区'), (1117, '株洲县'), (1118, '攸县'), (1119, '茶陵县'), (1120, '炎陵县'), (1121, '醴陵市')), 153: ((1122, '吉首市'), (1123, '泸溪县'), (1124, '凤凰县'), (1125, '花垣县'), (1126, '保靖县'), (1127, '古丈县'), (1128, '永顺县'), (1129, '龙山县')), 154: ((1130, '市辖区'), (1131, '慈利县'), (1132, '桑植县')), 155: ((1133, '市辖区'), (1134, '湘潭县'), (1135, '湘乡市'), (1136, '韶山市')), 156: ((1137, '市辖区'), (1138, '桃江县'), (1139, '安化县'), (1140, '沅江市')), 157: ((1141, '市辖区'), (1142, '双峰县'), (1143, '新化县'), (1144, '冷水江市'), (1145, '涟源市')), 158: ((1146, '市辖区'), (1147, '衡阳县'), (1148, '衡南县'), (1149, '衡山县'), (1150, '衡东县'), (1151, '祁东县'), (1152, '耒阳市'), (1153, '常宁市')), 159: ((1154, '市辖区'), (1155, '桂阳县'), (1156, '宜章县'), (1157, '永兴县'), (1158, '嘉禾县'), (1159, '临武县'), (1160, '汝城县'), (1161, '桂东县'), (1162, '安仁县'), (1163, '资兴市')), 160: ((1164, '市辖区'), (1165, '祁阳县'), (1166, '东安县'), (1167, '双牌县'), (1168, '道县'), (1169, '江永县'), (1170, '宁远县'), (1171, '蓝山县'), (1172, '新田县'), (1173, '江华瑶族自治县')), 161: ((1174, '市辖区'), (1175, '邵东县'), (1176, '新邵县'), (1177, '邵阳县'), (1178, '隆回县'), (1179, '洞口县'), (1180, '绥宁县'), (1181, '新宁县'), (1182, '城步苗族自治县'), (1183, '武冈市')), 162: ((1184, '市辖区'), (1185, '滕州市')), 163: ((1186, '市辖区'), (1187, '宁津县'), (1188, '庆云县'), (1189, '临邑县'), (1190, '齐河县'), (1191, '平原县'), (1192, '夏津县'), (1193, '武城县'), (1194, '乐陵市'), (1195, '禹城市')), 164: ((1196, '市辖区'), (1197, '平阴县'), (1198, '济阳县'), (1199, '商河县'), (1200, '章丘市')), 165: ((1201, '市辖区'), (1202, '微山县'), (1203, '鱼台县'), (1204, '金乡县'), (1205, '嘉祥县'), (1206, '汶上县'), (1207, '泗水县'), (1208, '梁山县'), (1209, '曲阜市'), (1210, '兖州市'), (1211, '邹城市')), 166: ((1212, '市辖区'), (1213, '成武县'), (1214, '巨野县'), (1215, '郓城县'), (1216, '鄄城县'), (1217, '定陶县'), (1218, '东明县')), 167: ((1219, '市辖区'), (1220, '惠民县'), (1221, '阳信县'), (1222, '无棣县'), (1223, '沾化县'), (1224, '博兴县'), (1225, '邹平县')), 168: ((1226, '市辖区'), (1227, '长岛县'), (1228, '龙口市'), (1229, '莱阳市'), (1230, '莱州市'), (1231, '蓬莱市'), (1232, '招远市'), (1233, '栖霞市'), (1234, '海阳市')), 169: ((1235, '市辖区'), (1236, '临朐县'), (1237, '昌乐县'), (1238, '青州市'), (1239, '诸城市'), (1240, '寿光市'), (1241, '安丘市'), (1242, '高密市'), (1243, '昌邑市')), 170: ((1244, '市辖区'), (1245, '阳谷县'), (1246, '莘县'), (1247, '茌平县'), (1248, '东阿县'), (1249, '冠县'), (1250, '高唐县'), (1251, '临清市')), 171: ((1252, '市辖区'), (1253, '五莲县'), (1254, '莒县')), 172: ((1255, '市辖区'), (1256, '宁阳县'), (1257, '东平县'), (1258, '新泰市'), (1259, '肥城市')), 173: ((1260, '市辖区'), (1261, '垦利县'), (1262, '利津县'), (1263, '广饶县')), 174: ((1264, '市辖区'), (1265, '沂南县'), (1266, '郯城县'), (1267, '沂水县'), (1268, '苍山县'), (1269, '费县'), (1270, '平邑县'), (1271, '莒南县'), (1272, '蒙阴县'), (1273, '临沭县')), 175: ((1274, '市辖区'), (1275, '胶州市'), (1276, '即墨市'), (1277, '平度市'), (1278, '胶南市'), (1279, '莱西市')), 176: ((1280, '市辖区'), (1281, '文登市'), (1282, '荣成市'), (1283, '乳山市')), 177: ((1284, '市辖区'), (1285, '桓台县'), (1286, '高青县'), (1287, '沂源县')), 178: ((1288, '市辖区'), (1289, '江川县'), (1290, '澄江县'), (1291, '通海县'), (1292, '华宁县'), (1293, '易门县'), (1294, '峨山彝族自治县'), (1295, '新平彝族傣族自治县'), (1296, '元江哈尼族彝族傣族自治县')), 179: ((1297, '市辖区'), (1298, '马龙县'), (1299, '陆良县'), (1300, '师宗县'), (1301, '罗平县'), (1302, '富源县'), (1303, '会泽县'), (1304, '沾益县'), (1305, '宣威市')), 180: ((1306, '景洪市'), (1307, '勐海县'), (1308, '勐腊县')), 181: ((1309, '文山县'), (1310, '砚山县'), (1311, '西畴县'), (1312, '麻栗坡县'), (1313, '马关县'), (1314, '丘北县'), (1315, '广南县'), (1316, '富宁县')), 182: ((1317, '瑞丽市'), (1318, '潞西市'), (1319, '梁河县'), (1320, '盈江县'), (1321, '陇川县')), 183: ((1322, '市辖区'), (1323, '施甸县'), (1324, '腾冲县'), (1325, '龙陵县'), (1326, '昌宁县')), 184: ((1327, '市辖区'), (1328, '鲁甸县'), (1329, '巧家县'), (1330, '盐津县'), (1331, '大关县'), (1332, '永善县'), (1333, '绥江县'), (1334, '镇雄县'), (1335, '彝良县'), (1336, '威信县'), (1337, '水富县')), 185: ((1338, '香格里拉县'), (1339, '德钦县'), (1340, '维西傈僳族自治县')), 186: ((1341, '市辖区'), (1342, '宁洱哈尼族彝族自治县'), (1343, '墨江哈尼族自治县'), (1344, '景东彝族自治县'), (1345, '景谷傣族彝族自治县'), (1346, '镇沅彝族哈尼族拉祜族自治县'), (1347, '江城哈尼族彝族自治县'), (1348, '孟连傣族拉祜族佤族自治县'), (1349, '澜沧拉祜族自治县'), (1350, '西盟佤族自治县')), 187: ((1351, '市辖区'), (1352, '呈贡县'), (1353, '晋宁县'), (1354, '富民县'), (1355, '宜良县'), (1356, '石林彝族自治县'), (1357, '嵩明县'), (1358, '禄劝彝族苗族自治县'), (1359, '寻甸回族彝族自治县'), (1360, '安宁市')), 188: ((1361, '市辖区'), (1362, '玉龙纳西族自治县'), (1363, '永胜县'), (1364, '华坪县'), (1365, '宁蒗彝族自治县')), 189: ((1366, '楚雄市'), (1367, '双柏县'), (1368, '牟定县'), (1369, '南华县'), (1370, '姚安县'), (1371, '大姚县'), (1372, '永仁县'), (1373, '元谋县'), (1374, '武定县'), (1375, '禄丰县')), 190: ((1376, '个旧市'), (1377, '开远市'), (1378, '蒙自县'), (1379, '屏边苗族自治县'), (1380, '建水县'), (1381, '石屏县'), (1382, '弥勒县'), (1383, '泸西县'), (1384, '元阳县'), (1385, '红河县'), (1386, '金平苗族瑶族傣族自治县'), (1387, '绿春县'), (1388, '河口瑶族自治县')), 191: ((1389, '市辖区'), (1390, '凤庆县'), (1391, '云县'), (1392, '永德县'), (1393, '镇康县'), (1394, '双江拉祜族佤族布朗族傣族自治县'), (1395, '耿马傣族佤族自治县'), (1396, '沧源佤族自治县')), 192: ((1397, '泸水县'), (1398, '福贡县'), (1399, '贡山独龙族怒族自治县'), (1400, '兰坪白族普米族自治县')), 193: ((1401, '大理市'), (1402, '漾濞彝族自治县'), (1403, '祥云县'), (1404, '宾川县'), (1405, '弥渡县'), (1406, '南涧彝族自治县'), (1407, '巍山彝族回族自治县'), (1408, '永平县'), (1409, '云龙县'), (1410, '洱源县'), (1411, '剑川县'), (1412, '鹤庆县')), 194: ((1413, '市辖区'), (1414, '新乡县'), (1415, '获嘉县'), (1416, '原阳县'), (1417, '延津县'), (1418, '封丘县'), (1419, '长垣县'), (1420, '卫辉市'), (1421, '辉县市')), 195: ((1422, '市辖区'), (1423, '西平县'), (1424, '上蔡县'), (1425, '平舆县'), (1426, '正阳县'), (1427, '确山县'), (1428, '泌阳县'), (1429, '汝南县'), (1430, '遂平县'), (1431, '新蔡县')), 196: ((1432, '市辖区'), (1433, '南召县'), (1434, '方城县'), (1435, '西峡县'), (1436, '镇平县'), (1437, '内乡县'), (1438, '淅川县'), (1439, '社旗县'), (1440, '唐河县'), (1441, '新野县'), (1442, '桐柏县'), (1443, '邓州市')), 197: ((1444, '市辖区'), (1445, '舞阳县'), (1446, '临颍县')), 198: ((1447, '市辖区'), (1448, '安阳县'), (1449, '汤阴县'), (1450, '滑县'), (1451, '内黄县'), (1452, '林州市')), 199: ((1453, '市辖区'), (1454, '宝丰县'), (1455, '叶县'), (1456, '鲁山县'), (1457, '郏县'), (1458, '舞钢市'), (1459, '汝州市')), 200: ((1460, '市辖区'), (1461, '民权县'), (1462, '睢县'), (1463, '宁陵县'), (1464, '柘城县'), (1465, '虞城县'), (1466, '夏邑县'), (1467, '永城市')), 201: ((1468, '市辖区'), (1469, '通许县'), (1470, '尉氏县'), (1471, '开封县'), (1472, '兰考县')), 202: ((1473, '市辖区'), (1474, '中牟县'), (1475, '巩义市'), (1476, '荥阳市'), (1477, '新密市'), (1478, '新郑市'), (1479, '登封市')), 203: ((1480, '市辖区'), (1481, '清丰县'), (1482, '南乐县'), (1483, '范县'), (1484, '台前县'), (1485, '濮阳县')), 204: ((1486, '市辖区'), (1487, '渑池县'), (1488, '陕县'), (1489, '卢氏县'), (1490, '义马市'), (1491, '灵宝市')), 205: ((1492, '市辖区'), (1493, '扶沟县'), (1494, '西华县'), (1495, '商水县'), (1496, '沈丘县'), (1497, '郸城县'), (1498, '淮阳县'), (1499, '太康县'), (1500, '鹿邑县'), (1501, '项城市')), 206: ((1502, '市辖区'), (1503, '修武县'), (1504, '博爱县'), (1505, '武陟县'), (1506, '温县'), (1507, '沁阳市'), (1508, '孟州市')), 207: ((1509, '市辖区'), (1510, '罗山县'), (1511, '光山县'), (1512, '新县'), (1513, '商城县'), (1514, '固始县'), (1515, '潢川县'), (1516, '淮滨县'), (1517, '息县')), 208: ((1518, '市辖区'), (1519, '许昌县'), (1520, '鄢陵县'), (1521, '襄城县'), (1522, '禹州市'), (1523, '长葛市')), 209: ((1524, '市辖区'), (1525, '孟津县'), (1526, '新安县'), (1527, '栾川县'), (1528, '嵩县'), (1529, '汝阳县'), (1530, '宜阳县'), (1531, '洛宁县'), (1532, '伊川县'), (1533, '偃师市')), 210: ((1534, '市辖区'), (1535, '增城市'), (1536, '从化市')), 211: ((1537, '市辖区'), (1538, '遂溪县'), (1539, '徐闻县'), (1540, '廉江市'), (1541, '雷州市'), (1542, '吴川市')), 212: ((1543, '市辖区'), (1544, '海丰县'), (1545, '陆河县'), (1546, '陆丰市')), 213: ((1547, '市辖区'), (1548, '南澳县')), 214: ((1549, '市辖区'), (1550, '大埔县'), (1551, '丰顺县'), (1552, '五华县'), (1553, '平远县'), (1554, '蕉岭县'), (1555, '兴宁市')), 215: ((1556, '市辖区'), (1557, '新兴县'), (1558, '郁南县'), (1559, '云安县'), (1560, '罗定市')), 216: ((1561, '市辖区'), (1562, '阳西县'), (1563, '阳东县'), (1564, '阳春市')), 217: ((1565, '市辖区'), (1566, '佛冈县'), (1567, '阳山县'), (1568, '连山壮族瑶族自治县'), (1569, '连南瑶族自治县'), (1570, '清新县'), (1571, '英德市'), (1572, '连州市')), 218: ((1573, '市辖区'), (1574, '电白县'), (1575, '高州市'), (1576, '化州市'), (1577, '信宜市')), 219: ((1578, '市辖区'), (1579, '揭东县'), (1580, '揭西县'), (1581, '惠来县'), (1582, '普宁市')), 220: ((1583, '市辖区'), (1584, '博罗县'), (1585, '惠东县'), (1586, '龙门县')), 221: ((1587, '市辖区'), (1588, '潮安县'), (1589, '饶平县')), 222: ((1590, '市辖区'), (1591, '紫金县'), (1592, '龙川县'), (1593, '连平县'), (1594, '和平县'), (1595, '东源县')), 223: ((1596, '市辖区'), (1597, '始兴县'), (1598, '仁化县'), (1599, '翁源县'), (1600, '乳源瑶族自治县'), (1601, '新丰县'), (1602, '乐昌市'), (1603, '南雄市')), 224: ((1604, '市辖区'), (1605, '广宁县'), (1606, '怀集县'), (1607, '封开县'), (1608, '德庆县'), (1609, '高要市'), (1610, '四会市')), 225: ((1611, '市辖区'), (1612, '台山市'), (1613, '开平市'), (1614, '鹤山市'), (1615, '恩平市')), 226: ((1616, '市辖区'), (1617, '霍邱县'), (1618, '舒城县'), (1619, '金寨县'), (1620, '霍山县')), 227: ((1621, '市辖区'), (1622, '凤台县')), 228: ((1623, '市辖区'), (1624, '铜陵县')), 229: ((1625, '市辖区'), (1626, '郎溪县'), (1627, '广德县'), (1628, '泾县'), (1629, '绩溪县'), (1630, '旌德县'), (1631, '宁国市')), 230: ((1632, '市辖区'), (1633, '临泉县'), (1634, '太和县'), (1635, '阜南县'), (1636, '颍上县'), (1637, '界首市')), 231: ((1638, '市辖区'), (1639, '砀山县'), (1640, '萧县'), (1641, '灵璧县'), (1642, '泗县')), 232: ((1643, '市辖区'), (1644, '来安县'), (1645, '全椒县'), (1646, '定远县'), (1647, '凤阳县'), (1648, '天长市'), (1649, '明光市')), 233: ((1650, '市辖区'), (1651, '休宁县'), (1652, '黟县'), (1653, '祁门县')), 234: ((1654, '市辖区'), (1655, '怀远县'), (1656, '五河县'), (1657, '固镇县')), 235: ((1658, '市辖区'), (1659, '濉溪县')), 236: ((1660, '市辖区'), (1661, '怀宁县'), (1662, '枞阳县'), (1663, '潜山县'), (1664, '太湖县'), (1665, '宿松县'), (1666, '望江县'), (1667, '岳西县'), (1668, '桐城市')), 237: ((1669, '市辖区'), (1670, '涡阳县'), (1671, '蒙城县'), (1672, '利辛县')), 238: ((1673, '市辖区'), (1674, '当涂县')), 239: ((1675, '市辖区'), (1676, '庐江县'), (1677, '无为县'), (1678, '含山县'), (1679, '和县')), 240: ((1680, '市辖区'), (1681, '芜湖县'), (1682, '繁昌县'), (1683, '南陵县')), 241: ((1684, '市辖区'), (1685, '东至县'), (1686, '石台县'), (1687, '青阳县')), 242: ((1688, '市辖区'), (1689, '长丰县'), (1690, '肥东县'), (1691, '肥西县')), 243: ((1692, '临夏市'), (1693, '临夏县'), (1694, '康乐县'), (1695, '永靖县'), (1696, '广河县'), (1697, '和政县'), (1698, '东乡族自治县'), (1699, '积石山保安族东乡族撒拉族自治县')), 244: ((1700, '市辖区'), (1701, '靖远县'), (1702, '会宁县'), (1703, '景泰县')), 245: ((1704, '市辖区'), (1705, '宕昌县'), (1706, '康县'), (1707, '西和县'), (1708, '礼县'), (1709, '徽县'), (1710, '两当县')), 246: ((1711, '市辖区'), (1712, '永昌县')), 247: ((1713, '市辖区'), (1714, '永登县'), (1715, '皋兰县'), (1716, '榆中县')), 248: ((1717, '市辖区'), (1718, '民勤县'), (1719, '古浪县'), (1720, '天祝藏族自治县')), 249: ((1721, '市辖区'), (1722, '通渭县'), (1723, '陇西县'), (1724, '渭源县'), (1725, '临洮县'), (1726, '漳县'), (1727, '岷县')), 250: ((1728, '市辖区'), (1729, '金塔县'), (1730, '瓜州县'), (1731, '肃北蒙古族自治县'), (1732, '阿克塞哈萨克族自治县'), (1733, '玉门市'), (1734, '敦煌市')), 251: ((1735, '合作市'), (1736, '临潭县'), (1737, '卓尼县'), (1738, '舟曲县'), (1739, '迭部县'), (1740, '玛曲县'), (1741, '碌曲县'), (1742, '夏河县')), 252: ((1743, '市辖区'), (1744, '庆城县'), (1745, '环县'), (1746, '华池县'), (1747, '合水县'), (1748, '正宁县'), (1749, '宁县'), (1750, '镇原县')), 253: ((1751, '市辖区'), (1752, '清水县'), (1753, '秦安县'), (1754, '甘谷县'), (1755, '武山县'), (1756, '张家川回族自治县')), 254: ((1757, '市辖区'), (1758, '肃南裕固族自治县'), (1759, '民乐县'), (1760, '临泽县'), (1761, '高台县'), (1762, '山丹县')), 255: ((1763, '市辖区'), (1764, '泾川县'), (1765, '灵台县'), (1766, '崇信县'), (1767, '华亭县'), (1768, '庄浪县'), (1769, '静宁县')), 256: ((1770, '市辖区'), (1771, '龙江县'), (1772, '依安县'), (1773, '泰来县'), (1774, '甘南县'), (1775, '富裕县'), (1776, '克山县'), (1777, '克东县'), (1778, '拜泉县'), (1779, '讷河市')), 257: ((1780, '加格达奇区'), (1781, '松岭区'), (1782, '新林区'), (1783, '呼中区'), (1784, '呼玛县'), (1785, '塔河县'), (1786, '漠河县')), 258: ((1787, '市辖区'), (1788, '鸡东县'), (1789, '虎林市'), (1790, '密山市')), 259: ((1791, '市辖区'), (1792, '嫩江县'), (1793, '逊克县'), (1794, '孙吴县'), (1795, '北安市'), (1796, '五大连池市')), 260: ((1797, '市辖区'), (1798, '桦南县'), (1799, '桦川县'), (1800, '汤原县'), (1801, '抚远县'), (1802, '同江市'), (1803, '富锦市')), 261: ((1804, '市辖区'), (1805, '依兰县'), (1806, '方正县'), (1807, '宾县'), (1808, '巴彦县'), (1809, '木兰县'), (1810, '通河县'), (1811, '延寿县'), (1812, '双城市'), (1813, '尚志市'), (1814, '五常市')), 262: ((1815, '市辖区'), (1816, '东宁县'), (1817, '林口县'), (1818, '绥芬河市'), (1819, '海林市'), (1820, '宁安市'), (1821, '穆棱市')), 263: ((1822, '市辖区'), (1823, '集贤县'), (1824, '友谊县'), (1825, '宝清县'), (1826, '饶河县')), 264: ((1827, '市辖区'), (1828, '勃利县')), 265: ((1829, '市辖区'), (1830, '肇州县'), (1831, '肇源县'), (1832, '林甸县'), (1833, '杜尔伯特蒙古族自治县')), 266: ((1834, '市辖区'), (1835, '望奎县'), (1836, '兰西县'), (1837, '青冈县'), (1838, '庆安县'), (1839, '明水县'), (1840, '绥棱县'), (1841, '安达市'), (1842, '肇东市'), (1843, '海伦市')), 267: ((1844, '市辖区'), (1845, '嘉荫县'), (1846, '铁力市')), 268: ((1847, '市辖区'), (1848, '萝北县'), (1849, '绥滨县')), 269: ((1850, '乌兰浩特市'), (1851, '阿尔山市'), (1852, '科尔沁右翼前旗'), (1853, '科尔沁右翼中旗'), (1854, '扎赉特旗'), (1855, '突泉县')), 270: ((1856, '市辖区'), (1857, '阿荣旗'), (1858, '莫力达瓦达斡尔族自治旗'), (1859, '鄂伦春自治旗'), (1860, '鄂温克族自治旗'), (1861, '陈巴尔虎旗'), (1862, '新巴尔虎左旗'), (1863, '新巴尔虎右旗'), (1864, '满洲里市'), (1865, '牙克石市'), (1866, '扎兰屯市'), (1867, '额尔古纳市'), (1868, '根河市')), 271: ((1869, '市辖区'), (1870, '卓资县'), (1871, '化德县'), (1872, '商都县'), (1873, '兴和县'), (1874, '凉城县'), (1875, '察哈尔右翼前旗'), (1876, '察哈尔右翼中旗'), (1877, '察哈尔右翼后旗'), (1878, '四子王旗'), (1879, '丰镇市')), 272: ((1880, '市辖区'), (1881, '五原县'), (1882, '磴口县'), (1883, '乌拉特前旗'), (1884, '乌拉特中旗'), (1885, '乌拉特后旗'), (1886, '杭锦后旗')), 273: ((1887, '二连浩特市'), (1888, '锡林浩特市'), (1889, '阿巴嘎旗'), (1890, '苏尼特左旗'), (1891, '苏尼特右旗'), (1892, '东乌珠穆沁旗'), (1893, '西乌珠穆沁旗'), (1894, '太仆寺旗'), (1895, '镶黄旗'), (1896, '正镶白旗'), (1897, '正蓝旗'), (1898, '多伦县')), 274: ((1899, '市辖区'), (1900, '东胜区'), (1901, '达拉特旗'), (1902, '准格尔旗'), (1903, '鄂托克前旗'), (1904, '鄂托克旗'), (1905, '杭锦旗'), (1906, '乌审旗'), (1907, '伊金霍洛旗')), 275: ((1908, '市辖区'), (1909, '科尔沁左翼中旗'), (1910, '科尔沁左翼后旗'), (1911, '开鲁县'), (1912, '库伦旗'), (1913, '奈曼旗'), (1914, '扎鲁特旗'), (1915, '霍林郭勒市')), 276: ((1916, '市辖区'), (1917, '阿鲁科尔沁旗'), (1918, '巴林左旗'), (1919, '巴林右旗'), (1920, '林西县'), (1921, '克什克腾旗'), (1922, '翁牛特旗'), (1923, '喀喇沁旗'), (1924, '宁城县'), (1925, '敖汉旗')), 277: ((1926, '市辖区'), (1927, '土默特左旗'), (1928, '托克托县'), (1929, '和林格尔县'), (1930, '清水河县'), (1931, '武川县')), 278: ((1932, '阿拉善左旗'), (1933, '阿拉善右旗'), (1934, '额济纳旗')), 279: ((1935, '市辖区'), (1936, '土默特右旗'), (1937, '固阳县'), (1938, '达尔罕茂明安联合旗')), 280: ((1939, '伊宁市'), (1940, '奎屯市'), (1941, '伊宁县'), (1942, '察布查尔锡伯自治县'), (1943, '霍城县'), (1944, '巩留县'), (1945, '新源县'), (1946, '昭苏县'), (1947, '特克斯县'), (1948, '尼勒克县')), 281: ((1949, '博乐市'), (1950, '精河县'), (1951, '温泉县')), 282: ((1952, '库尔勒市'), (1953, '轮台县'), (1954, '尉犁县'), (1955, '若羌县'), (1956, '且末县'), (1957, '焉耆回族自治县'), (1958, '和静县'), (1959, '和硕县'), (1960, '博湖县')), 283: ((1961, '市辖区'), (1962, '乌鲁木齐县')), 284: ((1963, '和田市'), (1964, '和田县'), (1965, '墨玉县'), (1966, '皮山县'), (1967, '洛浦县'), (1968, '策勒县'), (1969, '于田县'), (1970, '民丰县')), 285: ((1971, '喀什市'), (1972, '疏附县'), (1973, '疏勒县'), (1974, '英吉沙县'), (1975, '泽普县'), (1976, '莎车县'), (1977, '叶城县'), (1978, '麦盖提县'), (1979, '岳普湖县'), (1980, '伽师县'), (1981, '巴楚县'), (1982, '塔什库尔干塔吉克自治县')), 286: ((1983, '哈密市'), (1984, '巴里坤哈萨克自治县'), (1985, '伊吾县')), 287: ((1986, '阿勒泰市'), (1987, '布尔津县'), (1988, '富蕴县'), (1989, '福海县'), (1990, '哈巴河县'), (1991, '青河县'), (1992, '吉木乃县')), 288: ((1993, '阿图什市'), (1994, '阿克陶县'), (1995, '阿合奇县'), (1996, '乌恰县')), 289: ((1997, '昌吉市'), (1998, '阜康市'), (1999, '呼图壁县'), (2000, '玛纳斯县'), (2001, '奇台县'), (2002, '吉木萨尔县'), (2003, '木垒哈萨克自治县')), 290: ((2004, '阿克苏市'), (2005, '温宿县'), (2006, '库车县'), (2007, '沙雅县'), (2008, '新和县'), (2009, '拜城县'), (2010, '乌什县'), (2011, '阿瓦提县'), (2012, '柯坪县')), 291: ((2013, '吐鲁番市'), (2014, '鄯善县'), (2015, '托克逊县')), 292: ((2016, '塔城市'), (2017, '乌苏市'), (2018, '额敏县'), (2019, '沙湾县'), (2020, '托里县'), (2021, '裕民县'), (2022, '和布克赛尔蒙古自治县')), 293: ((2023, '市辖区'), (2024, '平南县'), (2025, '桂平市')), 294: ((2026, '市辖区'), (2027, '南丹县'), (2028, '天峨县'), (2029, '凤山县'), (2030, '东兰县'), (2031, '罗城仫佬族自治县'), (2032, '环江毛南族自治县'), (2033, '巴马瑶族自治县'), (2034, '都安瑶族自治县'), (2035, '大化瑶族自治县'), (2036, '宜州市')), 295: ((2037, '市辖区'), (2038, '昭平县'), (2039, '钟山县'), (2040, '富川瑶族自治县')), 296: ((2041, '市辖区'), (2042, '柳江县'), (2043, '柳城县'), (2044, '鹿寨县'), (2045, '融安县'), (2046, '融水苗族自治县'), (2047, '三江侗族自治县')), 297: ((2048, '市辖区'), (2049, '合浦县')), 298: ((2050, '市辖区'), (2051, '陆川县'), (2052, '博白县'), (2053, '兴业县'), (2054, '北流市')), 299: ((2055, '市辖区'), (2056, '阳朔县'), (2057, '临桂县'), (2058, '灵川县'), (2059, '全州县'), (2060, '兴安县'), (2061, '永福县'), (2062, '灌阳县'), (2063, '龙胜各族自治县'), (2064, '资源县'), (2065, '平乐县'), (2066, '荔蒲县'), (2067, '恭城瑶族自治县')), 300: ((2068, '市辖区'), (2069, '田阳县'), (2070, '田东县'), (2071, '平果县'), (2072, '德保县'), (2073, '靖西县'), (2074, '那坡县'), (2075, '凌云县'), (2076, '乐业县'), (2077, '田林县'), (2078, '西林县'), (2079, '隆林各族自治县')), 301: ((2080, '市辖区'), (2081, '灵山县'), (2082, '浦北县')), 302: ((2083, '市辖区'), (2084, '苍梧县'), (2085, '藤县'), (2086, '蒙山县'), (2087, '岑溪市')), 303: ((2088, '市辖区'), (2089, '忻城县'), (2090, '象州县'), (2091, '武宣县'), (2092, '金秀瑶族自治县'), (2093, '合山市')), 304: ((2094, '市辖区'), (2095, '扶绥县'), (2096, '宁明县'), (2097, '龙州县'), (2098, '大新县'), (2099, '天等县'), (2100, '凭祥市')), 305: ((2101, '市辖区'), (2102, '武鸣县'), (2103, '隆安县'), (2104, '马山县'), (2105, '上林县'), (2106, '宾阳县'), (2107, '横县')), 306: ((2108, '市辖区'), (2109, '上思县'), (2110, '东兴市')), 307: ((2111, '市辖区'), (2112, '平罗县')), 308: ((2113, '市辖区'), (2114, '中宁县'), (2115, '海原县')), 309: ((2116, '市辖区'), (2117, '盐池县'), (2118, '同心县'), (2119, '青铜峡市')), 310: ((2120, '市辖区'), (2121, '西吉县'), (2122, '隆德县'), (2123, '泾源县'), (2124, '彭阳县')), 311: ((2125, '市辖区'), (2126, '永宁县'), (2127, '贺兰县'), (2128, '灵武市')), 312: ((2129, '那曲县'), (2130, '嘉黎县'), (2131, '比如县'), (2132, '聂荣县'), (2133, '安多县'), (2134, '申扎县'), (2135, '索县'), (2136, '班戈县'), (2137, '巴青县'), (2138, '尼玛县')), 313: ((2139, '昌都县'), (2140, '江达县'), (2141, '贡觉县'), (2142, '类乌齐县'), (2143, '丁青县'), (2144, '察雅县'), (2145, '八宿县'), (2146, '左贡县'), (2147, '芒康县'), (2148, '洛隆县'), (2149, '边坝县')), 314: ((2150, '市辖区'), (2151, '林周县'), (2152, '当雄县'), (2153, '尼木县'), (2154, '曲水县'), (2155, '堆龙德庆县'), (2156, '达孜县'), (2157, '墨竹工卡县')), 315: ((2158, '乃东县'), (2159, '扎囊县'), (2160, '贡嘎县'), (2161, '桑日县'), (2162, '琼结县'), (2163, '曲松县'), (2164, '措美县'), (2165, '洛扎县'), (2166, '加查县'), (2167, '隆子县'), (2168, '错那县'), (2169, '浪卡子县')), 316: ((2170, '林芝县'), (2171, '工布江达县'), (2172, '米林县'), (2173, '墨脱县'), (2174, '波密县'), (2175, '察隅县'), (2176, '朗县')), 317: ((2177, '日喀则市'), (2178, '南木林县'), (2179, '江孜县'), (2180, '定日县'), (2181, '萨迦县'), (2182, '拉孜县'), (2183, '昂仁县'), (2184, '谢通门县'), (2185, '白朗县'), (2186, '仁布县'), (2187, '康马县'), (2188, '定结县'), (2189, '仲巴县'), (2190, '亚东县'), (2191, '吉隆县'), (2192, '聂拉木县'), (2193, '萨嘎县'), (2194, '岗巴县')), 318: ((2195, '普兰县'), (2196, '札达县'), (2197, '噶尔县'), (2198, '日土县'), (2199, '革吉县'), (2200, '改则县'), (2201, '措勤县')) } def name_by_id(id): result = [] country_id = id/1000000 if country_id: if country_id != 1: t = COUNTRY_DICT.get(country_id) if country_id == 1 or t: if country_id != 1: result.append(t) province_id = (id/10000)%100 if province_id: p = PROVINCE_DICT.get(province_id) if p: result.append(p) city_offset = (id/100)%100 if city_offset: t = CITY.get(province_id, ()) if city_offset <= len(t): city_id, name = t[city_offset-1] result.append(name) town_off = id%100 if town_off: t = TOWN.get(city_id, ()) if town_off <= len(t): n = t[town_off-1][1] if n != "市辖区": result.append(n) return " ".join(result) def id_2_country_province_city_town(id): return id/1000000, (id/10000)%100, (id/100)%100, id%100 def id_by_country_province_city_town(country_id, province_id, city_id, town_id): country_id = int(country_id) if province_id: province_id = int(province_id) if city_id: city_id = int(city_id) if town_id: town_id = int(town_id) result = country_id*100*100*100 if province_id: result += province_id*100*100 if city_id: city = CITY.get(province_id, ()) diff = 0 for pos, (id, name) in enumerate( city, 1): if id == city_id: diff = pos*100 break if diff: result += diff if town_id: town = TOWN.get(city_id, ()) for pos, (id, name) in enumerate( town, 1): if id == town_id: result += pos break return result if __name__ == "__main__": a = id_by_country_province_city_town(1, 34, 318, 2201) print a print name_by_id(a)
原创文章,作者:奋斗,如若转载,请注明出处:https://blog.ytso.com/8419.html