网络爬虫--13.数据提取之JSON与JsonPATH

文章目录

  • 一. 前言
  • 二. JSON
  • 三. json.loads()
  • 四. json.dumps()
  • 五. json.dump()
  • 六. json.load()
  • 七. JsonPath
  • 八. JsonPath与XPath语法对比
  • 九. 案例分析

一. 前言

JSON(JavaScript Object Notation) 是一种轻量级的数据交换格式,它使得人们很容易的进行阅读和编写。同时也方便了机器进行解析和生成。适用于进行数据交互的场景,比如网站前台与后台之间的数据交互。

JSON和XML的比较可谓不相上下。

Python 2.7中自带了JSON模块,直接import json就可以使用了。

官方文档:http://docs.python.org/library/json.html

Json在线解析网站:http://www.json.cn/#

二. JSON

json简单说就是javascript中的对象和数组,所以这两种结构就是对象和数组两种结构,通过这两种结构可以表示各种复杂的结构

对象:对象在js中表示为{ }括起来的内容,数据结构为 { key:value, key:value, … }的键值对的结构,在面向对象的语言中,key为对象的属性,value为对应的属性值,所以很容易理解,取值方法为 对象.key 获取属性值,这个属性值的类型可以是数字、字符串、数组、对象这几种。

数组:数组在js中是中括号[ ]括起来的内容,数据结构为 [“Python”, “javascript”, “C++”, …],取值方式和所有语言中一样,使用索引获取,字段值的类型可以是 数字、字符串、数组、对象几种。

在这里插入图片描述
json模块提供了四个功能:dumps、dump、loads、load,用于字符串 和 python数据类型间进行转换。

三. json.loads()

把Json格式字符串解码转换成Python对象 从json到python的类型转化对照如下:、
在这里插入图片描述

import jsonstrList = '[1, 2, 3, 4]'strDict = '{"city": "北京", "name": "大猫"}'json.loads(strList)
# [1, 2, 3, 4]json.loads(strDict) # json数据自动按Unicode存储
# {u'city': u'\u5317\u4eac', u'name': u'\u5927\u732b'}

四. json.dumps()

实现python类型转化为json字符串,返回一个str对象 把一个Python对象编码转换成Json字符串

从python原始类型向json类型的转化对照如下:

在这里插入图片描述

import json
import chardetlistStr = [1, 2, 3, 4]
tupleStr = (1, 2, 3, 4)
dictStr = {"city": "北京", "name": "大猫"}json.dumps(listStr)
# '[1, 2, 3, 4]'
json.dumps(tupleStr)
# '[1, 2, 3, 4]'# 注意:json.dumps() 序列化时默认使用的ascii编码
# 添加参数 ensure_ascii=False 禁用ascii编码,按utf-8编码
# chardet.detect()返回字典, 其中confidence是检测精确度json.dumps(dictStr)
# '{"city": "\\u5317\\u4eac", "name": "\\u5927\\u5218"}'chardet.detect(json.dumps(dictStr))
# {'confidence': 1.0, 'encoding': 'ascii'}print json.dumps(dictStr, ensure_ascii=False)
# {"city": "北京", "name": "大刘"}chardet.detect(json.dumps(dictStr, ensure_ascii=False))
# {'confidence': 0.99, 'encoding': 'utf-8'}

chardet是一个非常优秀的编码识别模块,可通过pip安装

五. json.dump()

将Python内置类型序列化为json对象后写入文件


import jsonlistStr = [{"city": "北京"}, {"name": "大刘"}]
json.dump(listStr, open("listStr.json","w"), ensure_ascii=False)dictStr = {"city": "北京", "name": "大刘"}
json.dump(dictStr, open("dictStr.json","w"), ensure_ascii=False)

六. json.load()

读取文件中json形式的字符串元素 转化成python类型

import jsonstrList = json.load(open("listStr.json"))
print strList# [{u'city': u'\u5317\u4eac'}, {u'name': u'\u5927\u5218'}]strDict = json.load(open("dictStr.json"))
print strDict
# {u'city': u'\u5317\u4eac', u'name': u'\u5927\u5218'}

七. JsonPath

JsonPath 是一种信息抽取类库,是从JSON文档中抽取指定信息的工具,提供多种语言实现版本,包括:Javascript, Python, PHP 和 Java。

JsonPath 对于 JSON 来说,相当于 XPATH 对于 XML。

下载地址:https://pypi.python.org/pypi/jsonpath

安装方法:点击Download URL链接下载jsonpath,解压之后执行python setup.py install

官方文档:http://goessner.net/articles/JsonPath

八. JsonPath与XPath语法对比

Json结构清晰,可读性高,复杂度低,非常容易匹配,下表中对应了XPath的用法。
在这里插入图片描述

九. 案例分析

以拉勾网城市JSON文件 http://www.lagou.com/lbs/getAllCitySearchLabels.json 为例,获取所有城市。

# 以拉勾网城市JSON文件 http://www.lagou.com/lbs/getAllCitySearchLabels.json 为例,获取所有城市。import requests
import jsonpath
import json
import chardetimport urllib3
urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)url = 'http://www.lagou.com/lbs/getAllCitySearchLabels.json'
headers = {"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.99 Safari/537.36"}
response = requests.get(url,verify=False,headers = headers)
html = response.textprint('------------1.json格式,类型为str-----------')
print(html)
print (type(html))# 把json格式字符串转换成python对象
jsonobj = json.loads(html)
print('------------2.python对象-----------')
print(jsonobj)
print(type(jsonobj))# 从根节点开始,匹配name节点
citylist = jsonpath.jsonpath(jsonobj,'$..name')
print('------------3.提取name-----------')
print (citylist)
print (type(citylist))content = json.dumps(citylist, ensure_ascii=False)
print('------------4.json格式,类型为str-----------')
print (content)
print (type(content))fp = open('city.json','wb')
fp.write(content.encode('utf-8'))
fp.close()

输出结果:

------------1.json格式,类型为str-----------
{"state":1,"message":"success","content":{"data":{"allCitySearchLabels":{"A":[{"id":723,"name":"安阳","parentId":545,"code":"171500000","isSelected":false},{"id":601,"name":"鞍山","parentId":535,"code":"081600000","isSelected":false},{"id":105795,"name":"澳门特别行政区","parentId":562,"code":"330100000","isSelected":false},{"id":671,"name":"安庆","parentId":541,"code":"131800000","isSelected":false},{"id":825,"name":"安顺","parentId":553,"code":"240400000","isSelected":false},{"id":903,"name":"阿勒泰","parentId":560,"code":"310400000","isSelected":false},{"id":897,"name":"阿克苏","parentId":560,"code":"311800000","isSelected":false},{"id":862,"name":"安康","parentId":556,"code":"270400000","isSelected":false},{"id":819,"name":"阿坝藏族羌族自治州","parentId":552,"code":"230700000","isSelected":false},{"id":598,"name":"阿拉善盟","parentId":534,"code":"070300000","isSelected":false}],"B":[{"id":5,"name":"北京","parentId":1,"code":"010100000","isSelected":false},{"id":570,"name":"保定","parentId":532,"code":"051100000","isSelected":false},{"id":666,"name":"蚌埠","parentId":541,"code":"131300000","isSelected":false},{"id":588,"name":"包头","parentId":534,"code":"071300000","isSelected":false},{"id":717,"name":"滨州","parentId":544,"code":"161400000","isSelected":false},{"id":856,"name":"宝鸡","parentId":556,"code":"271000000","isSelected":false},{"id":678,"name":"亳州","parentId":541,"code":"130500000","isSelected":false},{"id":789,"name":"北海","parentId":549,"code":"211000000","isSelected":false},{"id":794,"name":"百色","parentId":549,"code":"210500000","isSelected":false},{"id":817,"name":"巴中","parentId":552,"code":"230500000","isSelected":false},{"id":828,"name":"毕节","parentId":553,"code":"240700000","isSelected":false},{"id":603,"name":"本溪","parentId":535,"code":"081400000","isSelected":false},{"id":896,"name":"巴音郭楞","parentId":560,"code":"311700000","isSelected":false},{"id":834,"name":"保山","parentId":554,"code":"251400000","isSelected":false},{"id":597,"name":"巴彦淖尔","parentId":534,"code":"070400000","isSelected":false},{"id":895,"name":"博尔塔拉","parentId":560,"code":"311600000","isSelected":false},{"id":620,"name":"白城","parentId":536,"code":"090400000","isSelected":false},{"id":618,"name":"白山","parentId":536,"code":"090600000","isSelected":false}],"C":[{"id":801,"name":"成都","parentId":552,"code":"230100000","isSelected":false},{"id":749,"name":"长沙","parentId":547,"code":"190100000","isSelected":false},{"id":8,"name":"重庆","parentId":4,"code":"040100000","isSelected":false},{"id":613,"name":"长春","parentId":536,"code":"090100000","isSelected":false},{"id":638,"name":"常州","parentId":539,"code":"112000000","isSelected":false},{"id":573,"name":"沧州","parentId":532,"code":"050800000","isSelected":false},{"id":590,"name":"赤峰","parentId":534,"code":"071100000","isSelected":false},{"id":758,"name":"郴州","parentId":547,"code":"190500000","isSelected":false},{"id":781,"name":"潮州","parentId":548,"code":"200500000","isSelected":false},{"id":755,"name":"常德","parentId":547,"code":"190800000","isSelected":false},{"id":673,"name":"滁州","parentId":541,"code":"131100000","isSelected":false},{"id":611,"name":"朝阳","parentId":535,"code":"080600000","isSelected":false},{"id":572,"name":"承德","parentId":532,"code":"050900000","isSelected":false},{"id":679,"name":"池州","parentId":541,"code":"130600000","isSelected":false},{"id":836,"name":"楚雄","parentId":554,"code":"251200000","isSelected":false},{"id":894,"name":"昌吉","parentId":560,"code":"311500000","isSelected":false},{"id":905,"name":"崇左","parentId":549,"code":"211400000","isSelected":false}],"D":[{"id":779,"name":"东莞","parentId":548,"code":"200300000","isSelected":false},{"id":600,"name":"大连","parentId":535,"code":"081700000","isSelected":false},{"id":715,"name":"德州","parentId":544,"code":"161600000","isSelected":false},{"id":627,"name":"大庆","parentId":537,"code":"101300000","isSelected":false},{"id":805,"name":"德阳","parentId":552,"code":"231700000","isSelected":false},{"id":706,"name":"东营","parentId":544,"code":"162000000","isSelected":false},{"id":577,"name":"大同","parentId":533,"code":"061200000","isSelected":false},{"id":815,"name":"达州","parentId":552,"code":"230300000","isSelected":false},{"id":841,"name":"大理","parentId":554,"code":"250700000","isSelected":false},{"id":604,"name":"丹东","parentId":535,"code":"081300000","isSelected":false},{"id":874,"name":"定西","parentId":557,"code":"280400000","isSelected":false},{"id":842,"name":"德宏","parentId":554,"code":"250600000","isSelected":false},{"id":107620,"name":"儋州","parentId":550,"code":"220201000","isSelected":false},{"id":845,"name":"迪庆","parentId":554,"code":"250300000","isSelected":false}],"E":[{"id":741,"name":"鄂州","parentId":546,"code":"181600000","isSelected":false},{"id":748,"name":"恩施","parentId":546,"code":"180300000","isSelected":false},{"id":592,"name":"鄂尔多斯","parentId":534,"code":"070900000","isSelected":false}],"F":[{"id":768,"name":"佛山","parentId":548,"code":"202000000","isSelected":false},{"id":681,"name":"福州","parentId":542,"code":"140100000","isSelected":false},{"id":674,"name":"阜阳","parentId":541,"code":"131000000","isSelected":false},{"id":700,"name":"抚州","parentId":543,"code":"150200000","isSelected":false},{"id":602,"name":"抚顺","parentId":535,"code":"081500000","isSelected":false},{"id":607,"name":"阜新","parentId":535,"code":"081000000","isSelected":false},{"id":790,"name":"防城港","parentId":549,"code":"210900000","isSelected":false}],"G":[{"id":763,"name":"广州","parentId":548,"code":"200100000","isSelected":false},{"id":822,"name":"贵阳","parentId":553,"code":"240100000","isSelected":false},{"id":787,"name":"桂林","parentId":549,"code":"211200000","isSelected":false},{"id":697,"name":"赣州","parentId":543,"code":"150500000","isSelected":false},{"id":807,"name":"广元","parentId":552,"code":"231900000","isSelected":false},{"id":792,"name":"贵港","parentId":549,"code":"210700000","isSelected":false},{"id":814,"name":"广安","parentId":552,"code":"230200000","isSelected":false},{"id":889,"name":"固原","parentId":559,"code":"300400000","isSelected":false},{"id":820,"name":"甘孜藏族自治州","parentId":552,"code":"230800000","isSelected":false}],"H":[{"id":653,"name":"杭州","parentId":540,"code":"120100000","isSelected":false},{"id":664,"name":"合肥","parentId":541,"code":"130100000","isSelected":false},{"id":773,"name":"惠州","parentId":548,"code":"202500000","isSelected":false},{"id":622,"name":"哈尔滨","parentId":537,"code":"100100000","isSelected":false},{"id":799,"name":"海口","parentId":550,"code":"220100000","isSelected":false},{"id":587,"name":"呼和浩特","parentId":534,"code":"070100000","isSelected":false},{"id":568,"name":"邯郸","parentId":532,"code":"051300000","isSelected":false},{"id":657,"name":"湖州","parentId":540,"code":"122200000","isSelected":false},{"id":752,"name":"衡阳","parentId":547,"code":"191100000","isSelected":false},{"id":108353,"name":"海外","parentId":108352,"code":"350100000","isSelected":false},{"id":643,"name":"淮安","parentId":539,"code":"112500000","isSelected":false},{"id":718,"name":"菏泽","parentId":544,"code":"160200000","isSelected":false},{"id":575,"name":"衡水","parentId":532,"code":"050600000","isSelected":false},{"id":776,"name":"河源","parentId":548,"code":"201400000","isSelected":false},{"id":760,"name":"怀化","parentId":547,"code":"190300000","isSelected":false},{"id":745,"name":"黄冈","parentId":546,"code":"181100000","isSelected":false},{"id":737,"name":"黄石","parentId":546,"code":"181200000","isSelected":false},{"id":672,"name":"黄山","parentId":541,"code":"131900000","isSelected":false},{"id":612,"name":"葫芦岛","parentId":535,"code":"080500000","isSelected":false},{"id":669,"name":"淮北","parentId":541,"code":"131600000","isSelected":false},{"id":667,"name":"淮南","parentId":541,"code":"131400000","isSelected":false},{"id":593,"name":"呼伦贝尔","parentId":534,"code":"070800000","isSelected":false},{"id":860,"name":"汉中","parentId":556,"code":"270600000","isSelected":false},{"id":795,"name":"贺州","parentId":549,"code":"210400000","isSelected":false},{"id":837,"name":"红河","parentId":554,"code":"251100000","isSelected":false},{"id":796,"name":"河池","parentId":549,"code":"210300000","isSelected":false},{"id":724,"name":"鹤壁","parentId":545,"code":"171600000","isSelected":false},{"id":879,"name":"海东","parentId":558,"code":"290200000","isSelected":false},{"id":625,"name":"鹤岗","parentId":537,"code":"101500000","isSelected":false},{"id":893,"name":"哈密","parentId":560,"code":"311400000","isSelected":false}],"J":[{"id":702,"name":"济南","parentId":544,"code":"160100000","isSelected":false},{"id":659,"name":"金华","parentId":540,"code":"122400000","isSelected":false},{"id":656,"name":"嘉兴","parentId":540,"code":"122100000","isSelected":false},{"id":769,"name":"江门","parentId":548,"code":"202100000","isSelected":false},{"id":709,"name":"济宁","parentId":544,"code":"162300000","isSelected":false},{"id":582,"name":"晋中","parentId":533,"code":"060700000","isSelected":false},{"id":614,"name":"吉林","parentId":536,"code":"091000000","isSelected":false},{"id":694,"name":"九江","parentId":543,"code":"150800000","isSelected":false},{"id":782,"name":"揭阳","parentId":548,"code":"200600000","isSelected":false},{"id":744,"name":"荆州","parentId":546,"code":"181900000","isSelected":false},{"id":726,"name":"焦作","parentId":545,"code":"171800000","isSelected":false},{"id":605,"name":"锦州","parentId":535,"code":"081200000","isSelected":false},{"id":742,"name":"荆门","parentId":546,"code":"181700000","isSelected":false},{"id":698,"name":"吉安","parentId":543,"code":"150400000","isSelected":false},{"id":692,"name":"景德镇","parentId":543,"code":"151000000","isSelected":false},{"id":580,"name":"晋城","parentId":533,"code":"060900000","isSelected":false},{"id":629,"name":"佳木斯","parentId":537,"code":"101100000","isSelected":false},{"id":872,"name":"酒泉","parentId":557,"code":"280600000","isSelected":false},{"id":107292,"name":"济源","parentId":545,"code":"170711000","isSelected":false},{"id":866,"name":"金昌","parentId":557,"code":"281200000","isSelected":false}],"K":[{"id":831,"name":"昆明","parentId":554,"code":"250100000","isSelected":false},{"id":720,"name":"开封","parentId":545,"code":"171200000","isSelected":false},{"id":891,"name":"克拉玛依","parentId":560,"code":"311200000","isSelected":false},{"id":899,"name":"喀什","parentId":560,"code":"311100000","isSelected":false}],"L":[{"id":864,"name":"兰州","parentId":557,"code":"280100000","isSelected":false},{"id":714,"name":"临沂","parentId":544,"code":"162800000","isSelected":false},{"id":574,"name":"廊坊","parentId":532,"code":"050700000","isSelected":false},{"id":721,"name":"洛阳","parentId":545,"code":"171300000","isSelected":false},{"id":786,"name":"柳州","parentId":549,"code":"211300000","isSelected":false},{"id":677,"name":"六安","parentId":541,"code":"130400000","isSelected":false},{"id":716,"name":"聊城","parentId":544,"code":"161500000","isSelected":false},{"id":642,"name":"连云港","parentId":539,"code":"112400000","isSelected":false},{"id":586,"name":"吕梁","parentId":533,"code":"060300000","isSelected":false},{"id":804,"name":"泸州","parentId":552,"code":"231600000","isSelected":false},{"id":847,"name":"拉萨","parentId":555,"code":"260100000","isSelected":false},{"id":663,"name":"丽水","parentId":540,"code":"122800000","isSelected":false},{"id":810,"name":"乐山","parentId":552,"code":"232200000","isSelected":false},{"id":689,"name":"龙岩","parentId":542,"code":"140400000","isSelected":false},{"id":729,"name":"漯河","parentId":545,"code":"171000000","isSelected":false},{"id":585,"name":"临汾","parentId":533,"code":"060400000","isSelected":false},{"id":823,"name":"六盘水","parentId":553,"code":"240200000","isSelected":false},{"id":821,"name":"凉山彝族自治州","parentId":552,"code":"230900000","isSelected":false},{"id":843,"name":"丽江","parentId":554,"code":"250500000","isSelected":false},{"id":761,"name":"娄底","parentId":547,"code":"190200000","isSelected":false},{"id":713,"name":"莱芜","parentId":544,"code":"162700000","isSelected":false},{"id":616,"name":"辽源","parentId":536,"code":"090800000","isSelected":false},{"id":875,"name":"陇南","parentId":557,"code":"280300000","isSelected":false},{"id":876,"name":"临夏","parentId":557,"code":"280200000","isSelected":false},{"id":904,"name":"来宾","parentId":549,"code":"210200000","isSelected":false}],"M":[{"id":806,"name":"绵阳","parentId":552,"code":"231800000","isSelected":false},{"id":771,"name":"茂名","parentId":548,"code":"202300000","isSelected":false},{"id":668,"name":"马鞍山","parentId":541,"code":"131500000","isSelected":false},{"id":774,"name":"梅州","parentId":548,"code":"202600000","isSelected":false},{"id":631,"name":"牡丹江","parentId":537,"code":"100900000","isSelected":false},{"id":812,"name":"眉山","parentId":552,"code":"231300000","isSelected":false}],"N":[{"id":635,"name":"南京","parentId":539,"code":"110100000","isSelected":false},{"id":654,"name":"宁波","parentId":540,"code":"121900000","isSelected":false},{"id":691,"name":"南昌","parentId":543,"code":"150100000","isSelected":false},{"id":785,"name":"南宁","parentId":549,"code":"210100000","isSelected":false},{"id":641,"name":"南通","parentId":539,"code":"112300000","isSelected":false},{"id":811,"name":"南充","parentId":552,"code":"232300000","isSelected":false},{"id":731,"name":"南阳","parentId":545,"code":"170300000","isSelected":false},{"id":690,"name":"宁德","parentId":542,"code":"140300000","isSelected":false},{"id":809,"name":"内江","parentId":552,"code":"232100000","isSelected":false},{"id":688,"name":"南平","parentId":542,"code":"140500000","isSelected":false}],"P":[{"id":683,"name":"莆田","parentId":542,"code":"141000000","isSelected":false},{"id":727,"name":"濮阳","parentId":545,"code":"171900000","isSelected":false},{"id":693,"name":"萍乡","parentId":543,"code":"150900000","isSelected":false},{"id":722,"name":"平顶山","parentId":545,"code":"171400000","isSelected":false},{"id":803,"name":"攀枝花","parentId":552,"code":"231500000","isSelected":false},{"id":609,"name":"盘锦","parentId":535,"code":"080800000","isSelected":false},{"id":871,"name":"平凉","parentId":557,"code":"280700000","isSelected":false},{"id":10163,"name":"普洱","parentId":554,"code":"251700000","isSelected":false}],"Q":[{"id":703,"name":"青岛","parentId":544,"code":"161700000","isSelected":false},{"id":685,"name":"泉州","parentId":542,"code":"140800000","isSelected":false},{"id":778,"name":"清远","parentId":548,"code":"200200000","isSelected":false},{"id":567,"name":"秦皇岛","parentId":532,"code":"051400000","isSelected":false},{"id":832,"name":"曲靖","parentId":554,"code":"251600000","isSelected":false},{"id":660,"name":"衢州","parentId":540,"code":"122500000","isSelected":false},{"id":623,"name":"齐齐哈尔","parentId":537,"code":"101700000","isSelected":false},{"id":827,"name":"黔西南","parentId":553,"code":"240600000","isSelected":false},{"id":830,"name":"黔南","parentId":553,"code":"240900000","isSelected":false},{"id":829,"name":"黔东南","parentId":553,"code":"240800000","isSelected":false},{"id":791,"name":"钦州","parentId":549,"code":"210800000","isSelected":false},{"id":873,"name":"庆阳","parentId":557,"code":"280500000","isSelected":false},{"id":630,"name":"七台河","parentId":537,"code":"101000000","isSelected":false}],"R":[{"id":712,"name":"日照","parentId":544,"code":"162600000","isSelected":false}],"S":[{"id":765,"name":"深圳","parentId":548,"code":"201700000","isSelected":false},{"id":6,"name":"上海","parentId":2,"code":"020100000","isSelected":false},{"id":639,"name":"苏州","parentId":539,"code":"112100000","isSelected":false},{"id":599,"name":"沈阳","parentId":535,"code":"080100000","isSelected":false},{"id":565,"name":"石家庄","parentId":532,"code":"050100000","isSelected":false},{"id":658,"name":"绍兴","parentId":540,"code":"122300000","isSelected":false},{"id":767,"name":"汕头","parentId":548,"code":"201900000","isSelected":false},{"id":648,"name":"宿迁","parentId":539,"code":"113000000","isSelected":false},{"id":732,"name":"商丘","parentId":545,"code":"170400000","isSelected":false},{"id":800,"name":"三亚","parentId":550,"code":"221800000","isSelected":false},{"id":701,"name":"上饶","parentId":543,"code":"151100000","isSelected":false},{"id":675,"name":"宿州","parentId":541,"code":"130200000","isSelected":false},{"id":753,"name":"邵阳","parentId":547,"code":"191000000","isSelected":false},{"id":738,"name":"十堰","parentId":546,"code":"181300000","isSelected":false},{"id":808,"name":"遂宁","parentId":552,"code":"232000000","isSelected":false},{"id":764,"name":"韶关","parentId":548,"code":"201600000","isSelected":false},{"id":730,"name":"三门峡","parentId":545,"code":"170200000","isSelected":false},{"id":684,"name":"三明","parentId":542,"code":"140900000","isSelected":false},{"id":775,"name":"汕尾","parentId":548,"code":"201500000","isSelected":false},{"id":747,"name":"随州","parentId":546,"code":"180200000","isSelected":false},{"id":907,"name":"三沙","parentId":550,"code":"220200000","isSelected":false},{"id":887,"name":"石嘴山","parentId":559,"code":"300200000","isSelected":false},{"id":633,"name":"绥化","parentId":537,"code":"100700000","isSelected":false},{"id":615,"name":"四平","parentId":536,"code":"090900000","isSelected":false},{"id":619,"name":"松原","parentId":536,"code":"090500000","isSelected":false},{"id":581,"name":"朔州","parentId":533,"code":"060800000","isSelected":false},{"id":863,"name":"商洛","parentId":556,"code":"270300000","isSelected":false}],"T":[{"id":7,"name":"天津","parentId":3,"code":"030100000","isSelected":false},{"id":576,"name":"太原","parentId":533,"code":"060100000","isSelected":false},{"id":566,"name":"唐山","parentId":532,"code":"051500000","isSelected":false},{"id":662,"name":"台州","parentId":540,"code":"122700000","isSelected":false},{"id":710,"name":"泰安","parentId":544,"code":"162400000","isSelected":false},{"id":647,"name":"泰州","parentId":539,"code":"112900000","isSelected":false},{"id":868,"name":"天水","parentId":557,"code":"281000000","isSelected":false},{"id":591,"name":"通辽","parentId":534,"code":"071000000","isSelected":false},{"id":670,"name":"铜陵","parentId":541,"code":"131700000","isSelected":false},{"id":108355,"name":"台湾","parentId":563,"code":"340100000","isSelected":false},{"id":826,"name":"铜仁","parentId":553,"code":"240500000","isSelected":false},{"id":855,"name":"铜川","parentId":556,"code":"271100000","isSelected":false},{"id":610,"name":"铁岭","parentId":535,"code":"080700000","isSelected":false},{"id":902,"name":"塔城","parentId":560,"code":"310300000","isSelected":false},{"id":107384,"name":"天门","parentId":546,"code":"180311000","isSelected":false},{"id":617,"name":"通化","parentId":536,"code":"090700000","isSelected":false}],"W":[{"id":736,"name":"武汉","parentId":546,"code":"180100000","isSelected":false},{"id":636,"name":"无锡","parentId":539,"code":"111800000","isSelected":false},{"id":655,"name":"温州","parentId":540,"code":"122000000","isSelected":false},{"id":708,"name":"潍坊","parentId":544,"code":"162200000","isSelected":false},{"id":890,"name":"乌鲁木齐","parentId":560,"code":"310100000","isSelected":false},{"id":665,"name":"芜湖","parentId":541,"code":"131200000","isSelected":false},{"id":711,"name":"威海","parentId":544,"code":"162500000","isSelected":false},{"id":858,"name":"渭南","parentId":556,"code":"270800000","isSelected":false},{"id":788,"name":"梧州","parentId":549,"code":"211100000","isSelected":false},{"id":888,"name":"吴忠","parentId":559,"code":"300300000","isSelected":false},{"id":596,"name":"乌兰察布","parentId":534,"code":"070500000","isSelected":false},{"id":838,"name":"文山","parentId":554,"code":"251000000","isSelected":false},{"id":589,"name":"乌海","parentId":534,"code":"071200000","isSelected":false}],"X":[{"id":854,"name":"西安","parentId":556,"code":"270100000","isSelected":false},{"id":682,"name":"厦门","parentId":542,"code":"141100000","isSelected":false},{"id":637,"name":"徐州","parentId":539,"code":"111900000","isSelected":false},{"id":725,"name":"新乡","parentId":545,"code":"171700000","isSelected":false},{"id":878,"name":"西宁","parentId":558,"code":"290100000","isSelected":false},{"id":857,"name":"咸阳","parentId":556,"code":"270900000","isSelected":false},{"id":728,"name":"许昌","parentId":545,"code":"171100000","isSelected":false},{"id":569,"name":"邢台","parentId":532,"code":"051200000","isSelected":false},{"id":743,"name":"孝感","parentId":546,"code":"181800000","isSelected":false},{"id":740,"name":"襄阳","parentId":546,"code":"181500000","isSelected":false},{"id":105794,"name":"香港特别行政区","parentId":561,"code":"320100000","isSelected":false},{"id":733,"name":"信阳","parentId":545,"code":"170500000","isSelected":false},{"id":751,"name":"湘潭","parentId":547,"code":"191200000","isSelected":false},{"id":746,"name":"咸宁","parentId":546,"code":"181000000","isSelected":false},{"id":584,"name":"忻州","parentId":533,"code":"060500000","isSelected":false},{"id":680,"name":"宣城","parentId":541,"code":"130700000","isSelected":false},{"id":840,"name":"西双版纳","parentId":554,"code":"250800000","isSelected":false},{"id":762,"name":"湘西土家族苗族自治州","parentId":547,"code":"191400000","isSelected":false},{"id":695,"name":"新余","parentId":543,"code":"150700000","isSelected":false},{"id":594,"name":"兴安盟","parentId":534,"code":"070700000","isSelected":false}],"Y":[{"id":707,"name":"烟台","parentId":544,"code":"162100000","isSelected":false},{"id":645,"name":"扬州","parentId":539,"code":"112700000","isSelected":false},{"id":886,"name":"银川","parentId":559,"code":"300100000","isSelected":false},{"id":644,"name":"盐城","parentId":539,"code":"112600000","isSelected":false},{"id":739,"name":"宜昌","parentId":546,"code":"181400000","isSelected":false},{"id":754,"name":"岳阳","parentId":547,"code":"190900000","isSelected":false},{"id":699,"name":"宜春","parentId":543,"code":"150300000","isSelected":false},{"id":777,"name":"阳江","parentId":548,"code":"201300000","isSelected":false},{"id":793,"name":"玉林","parentId":549,"code":"210600000","isSelected":false},{"id":833,"name":"玉溪","parentId":554,"code":"251500000","isSelected":false},{"id":757,"name":"益阳","parentId":547,"code":"190600000","isSelected":false},{"id":813,"name":"宜宾","parentId":552,"code":"231200000","isSelected":false},{"id":583,"name":"运城","parentId":533,"code":"060600000","isSelected":false},{"id":861,"name":"榆林","parentId":556,"code":"270500000","isSelected":false},{"id":783,"name":"云浮","parentId":548,"code":"200700000","isSelected":false},{"id":759,"name":"永州","parentId":547,"code":"190400000","isSelected":false},{"id":606,"name":"营口","parentId":535,"code":"081100000","isSelected":false},{"id":859,"name":"延安","parentId":556,"code":"270700000","isSelected":false},{"id":696,"name":"鹰潭","parentId":543,"code":"150600000","isSelected":false},{"id":621,"name":"延边","parentId":536,"code":"090300000","isSelected":false},{"id":901,"name":"伊犁","parentId":560,"code":"310200000","isSelected":false},{"id":578,"name":"阳泉","parentId":533,"code":"061100000","isSelected":false},{"id":816,"name":"雅安","parentId":552,"code":"230400000","isSelected":false}],"Z":[{"id":719,"name":"郑州","parentId":545,"code":"170100000","isSelected":false},{"id":766,"name":"珠海","parentId":548,"code":"201800000","isSelected":false},{"id":780,"name":"中山","parentId":548,"code":"200400000","isSelected":false},{"id":704,"name":"淄博","parentId":544,"code":"161800000","isSelected":false},{"id":750,"name":"株洲","parentId":547,"code":"191300000","isSelected":false},{"id":824,"name":"遵义","parentId":553,"code":"240300000","isSelected":false},{"id":770,"name":"湛江","parentId":548,"code":"202200000","isSelected":false},{"id":772,"name":"肇庆","parentId":548,"code":"202400000","isSelected":false},{"id":646,"name":"镇江","parentId":539,"code":"112800000","isSelected":false},{"id":571,"name":"张家口","parentId":532,"code":"051000000","isSelected":false},{"id":734,"name":"周口","parentId":545,"code":"170600000","isSelected":false},{"id":687,"name":"漳州","parentId":542,"code":"140600000","isSelected":false},{"id":735,"name":"驻马店","parentId":545,"code":"170700000","isSelected":false},{"id":705,"name":"枣庄","parentId":544,"code":"161900000","isSelected":false},{"id":579,"name":"长治","parentId":533,"code":"061000000","isSelected":false},{"id":661,"name":"舟山","parentId":540,"code":"122600000","isSelected":false},{"id":835,"name":"昭通","parentId":554,"code":"251300000","isSelected":false},{"id":818,"name":"资阳","parentId":552,"code":"230600000","isSelected":false},{"id":870,"name":"张掖","parentId":557,"code":"280800000","isSelected":false},{"id":802,"name":"自贡","parentId":552,"code":"231400000","isSelected":false},{"id":906,"name":"中卫","parentId":559,"code":"300500000","isSelected":false},{"id":756,"name":"张家界","parentId":547,"code":"190700000","isSelected":false}]}},"rows":[]}}
<class 'str'>
------------2.python对象-----------
{'state': 1, 'message': 'success', 'content': {'data': {'allCitySearchLabels': {'A': [{'id': 723, 'name': '安阳', 'parentId': 545, 'code': '171500000', 'isSelected': False}, {'id': 601, 'name': '鞍山', 'parentId': 535, 'code': '081600000', 'isSelected': False}, {'id': 105795, 'name': '澳门特别行政区', 'parentId': 562, 'code': '330100000', 'isSelected': False}, {'id': 671, 'name': '安庆', 'parentId': 541, 'code': '131800000', 'isSelected': False}, {'id': 825, 'name': '安顺', 'parentId': 553, 'code': '240400000', 'isSelected': False}, {'id': 903, 'name': '阿勒泰', 'parentId': 560, 'code': '310400000', 'isSelected': False}, {'id': 897, 'name': '阿克苏', 'parentId': 560, 'code': '311800000', 'isSelected': False}, {'id': 862, 'name': '安康', 'parentId': 556, 'code': '270400000', 'isSelected': False}, {'id': 819, 'name': '阿坝藏族羌族自治州', 'parentId': 552, 'code': '230700000', 'isSelected': False}, {'id': 598, 'name': '阿拉善盟', 'parentId': 534, 'code': '070300000', 'isSelected': False}], 'B': [{'id': 5, 'name': '北京', 'parentId': 1, 'code': '010100000', 'isSelected': False}, {'id': 570, 'name': '保定', 'parentId': 532, 'code': '051100000', 'isSelected': False}, {'id': 666, 'name': '蚌埠', 'parentId': 541, 'code': '131300000', 'isSelected': False}, {'id': 588, 'name': '包头', 'parentId': 534, 'code': '071300000', 'isSelected': False}, {'id': 717, 'name': '滨州', 'parentId': 544, 'code': '161400000', 'isSelected': False}, {'id': 856, 'name': '宝鸡', 'parentId': 556, 'code': '271000000', 'isSelected': False}, {'id': 678, 'name': '亳州', 'parentId': 541, 'code': '130500000', 'isSelected': False}, {'id': 789, 'name': '北海', 'parentId': 549, 'code': '211000000', 'isSelected': False}, {'id': 794, 'name': '百色', 'parentId': 549, 'code': '210500000', 'isSelected': False}, {'id': 817, 'name': '巴中', 'parentId': 552, 'code': '230500000', 'isSelected': False}, {'id': 828, 'name': '毕节', 'parentId': 553, 'code': '240700000', 'isSelected': False}, {'id': 603, 'name': '本溪', 'parentId': 535, 'code': '081400000', 'isSelected': False}, {'id': 896, 'name': '巴音郭楞', 'parentId': 560, 'code': '311700000', 'isSelected': False}, {'id': 834, 'name': '保山', 'parentId': 554, 'code': '251400000', 'isSelected': False}, {'id': 597, 'name': '巴彦淖尔', 'parentId': 534, 'code': '070400000', 'isSelected': False}, {'id': 895, 'name': '博尔塔拉', 'parentId': 560, 'code': '311600000', 'isSelected': False}, {'id': 620, 'name': '白城', 'parentId': 536, 'code': '090400000', 'isSelected': False}, {'id': 618, 'name': '白山', 'parentId': 536, 'code': '090600000', 'isSelected': False}], 'C': [{'id': 801, 'name': '成都', 'parentId': 552, 'code': '230100000', 'isSelected': False}, {'id': 749, 'name': '长沙', 'parentId': 547, 'code': '190100000', 'isSelected': False}, {'id': 8, 'name': '重庆', 'parentId': 4, 'code': '040100000', 'isSelected': False}, {'id': 613, 'name': '长春', 'parentId': 536, 'code': '090100000', 'isSelected': False}, {'id': 638, 'name': '常州', 'parentId': 539, 'code': '112000000', 'isSelected': False}, {'id': 573, 'name': '沧州', 'parentId': 532, 'code': '050800000', 'isSelected': False}, {'id': 590, 'name': '赤峰', 'parentId': 534, 'code': '071100000', 'isSelected': False}, {'id': 758, 'name': '郴州', 'parentId': 547, 'code': '190500000', 'isSelected': False}, {'id': 781, 'name': '潮州', 'parentId': 548, 'code': '200500000', 'isSelected': False}, {'id': 755, 'name': '常德', 'parentId': 547, 'code': '190800000', 'isSelected': False}, {'id': 673, 'name': '滁州', 'parentId': 541, 'code': '131100000', 'isSelected': False}, {'id': 611, 'name': '朝阳', 'parentId': 535, 'code': '080600000', 'isSelected': False}, {'id': 572, 'name': '承德', 'parentId': 532, 'code': '050900000', 'isSelected': False}, {'id': 679, 'name': '池州', 'parentId': 541, 'code': '130600000', 'isSelected': False}, {'id': 836, 'name': '楚雄', 'parentId': 554, 'code': '251200000', 'isSelected': False}, {'id': 894, 'name': '昌吉', 'parentId': 560, 'code': '311500000', 'isSelected': False}, {'id': 905, 'name': '崇左', 'parentId': 549, 'code': '211400000', 'isSelected': False}], 'D': [{'id': 779, 'name': '东莞', 'parentId': 548, 'code': '200300000', 'isSelected': False}, {'id': 600, 'name': '大连', 'parentId': 535, 'code': '081700000', 'isSelected': False}, {'id': 715, 'name': '德州', 'parentId': 544, 'code': '161600000', 'isSelected': False}, {'id': 627, 'name': '大庆', 'parentId': 537, 'code': '101300000', 'isSelected': False}, {'id': 805, 'name': '德阳', 'parentId': 552, 'code': '231700000', 'isSelected': False}, {'id': 706, 'name': '东营', 'parentId': 544, 'code': '162000000', 'isSelected': False}, {'id': 577, 'name': '大同', 'parentId': 533, 'code': '061200000', 'isSelected': False}, {'id': 815, 'name': '达州', 'parentId': 552, 'code': '230300000', 'isSelected': False}, {'id': 841, 'name': '大理', 'parentId': 554, 'code': '250700000', 'isSelected': False}, {'id': 604, 'name': '丹东', 'parentId': 535, 'code': '081300000', 'isSelected': False}, {'id': 874, 'name': '定西', 'parentId': 557, 'code': '280400000', 'isSelected': False}, {'id': 842, 'name': '德宏', 'parentId': 554, 'code': '250600000', 'isSelected': False}, {'id': 107620, 'name': '儋州', 'parentId': 550, 'code': '220201000', 'isSelected': False}, {'id': 845, 'name': '迪庆', 'parentId': 554, 'code': '250300000', 'isSelected': False}], 'E': [{'id': 741, 'name': '鄂州', 'parentId': 546, 'code': '181600000', 'isSelected': False}, {'id': 748, 'name': '恩施', 'parentId': 546, 'code': '180300000', 'isSelected': False}, {'id': 592, 'name': '鄂尔多斯', 'parentId': 534, 'code': '070900000', 'isSelected': False}], 'F': [{'id': 768, 'name': '佛山', 'parentId': 548, 'code': '202000000', 'isSelected': False}, {'id': 681, 'name': '福州', 'parentId': 542, 'code': '140100000', 'isSelected': False}, {'id': 674, 'name': '阜阳', 'parentId': 541, 'code': '131000000', 'isSelected': False}, {'id': 700, 'name': '抚州', 'parentId': 543, 'code': '150200000', 'isSelected': False}, {'id': 602, 'name': '抚顺', 'parentId': 535, 'code': '081500000', 'isSelected': False}, {'id': 607, 'name': '阜新', 'parentId': 535, 'code': '081000000', 'isSelected': False}, {'id': 790, 'name': '防城港', 'parentId': 549, 'code': '210900000', 'isSelected': False}], 'G': [{'id': 763, 'name': '广州', 'parentId': 548, 'code': '200100000', 'isSelected': False}, {'id': 822, 'name': '贵阳', 'parentId': 553, 'code': '240100000', 'isSelected': False}, {'id': 787, 'name': '桂林', 'parentId': 549, 'code': '211200000', 'isSelected': False}, {'id': 697, 'name': '赣州', 'parentId': 543, 'code': '150500000', 'isSelected': False}, {'id': 807, 'name': '广元', 'parentId': 552, 'code': '231900000', 'isSelected': False}, {'id': 792, 'name': '贵港', 'parentId': 549, 'code': '210700000', 'isSelected': False}, {'id': 814, 'name': '广安', 'parentId': 552, 'code': '230200000', 'isSelected': False}, {'id': 889, 'name': '固原', 'parentId': 559, 'code': '300400000', 'isSelected': False}, {'id': 820, 'name': '甘孜藏族自治州', 'parentId': 552, 'code': '230800000', 'isSelected': False}], 'H': [{'id': 653, 'name': '杭州', 'parentId': 540, 'code': '120100000', 'isSelected': False}, {'id': 664, 'name': '合肥', 'parentId': 541, 'code': '130100000', 'isSelected': False}, {'id': 773, 'name': '惠州', 'parentId': 548, 'code': '202500000', 'isSelected': False}, {'id': 622, 'name': '哈尔滨', 'parentId': 537, 'code': '100100000', 'isSelected': False}, {'id': 799, 'name': '海口', 'parentId': 550, 'code': '220100000', 'isSelected': False}, {'id': 587, 'name': '呼和浩特', 'parentId': 534, 'code': '070100000', 'isSelected': False}, {'id': 568, 'name': '邯郸', 'parentId': 532, 'code': '051300000', 'isSelected': False}, {'id': 657, 'name': '湖州', 'parentId': 540, 'code': '122200000', 'isSelected': False}, {'id': 752, 'name': '衡阳', 'parentId': 547, 'code': '191100000', 'isSelected': False}, {'id': 108353, 'name': '海外', 'parentId': 108352, 'code': '350100000', 'isSelected': False}, {'id': 643, 'name': '淮安', 'parentId': 539, 'code': '112500000', 'isSelected': False}, {'id': 718, 'name': '菏泽', 'parentId': 544, 'code': '160200000', 'isSelected': False}, {'id': 575, 'name': '衡水', 'parentId': 532, 'code': '050600000', 'isSelected': False}, {'id': 776, 'name': '河源', 'parentId': 548, 'code': '201400000', 'isSelected': False}, {'id': 760, 'name': '怀化', 'parentId': 547, 'code': '190300000', 'isSelected': False}, {'id': 745, 'name': '黄冈', 'parentId': 546, 'code': '181100000', 'isSelected': False}, {'id': 737, 'name': '黄石', 'parentId': 546, 'code': '181200000', 'isSelected': False}, {'id': 672, 'name': '黄山', 'parentId': 541, 'code': '131900000', 'isSelected': False}, {'id': 612, 'name': '葫芦岛', 'parentId': 535, 'code': '080500000', 'isSelected': False}, {'id': 669, 'name': '淮北', 'parentId': 541, 'code': '131600000', 'isSelected': False}, {'id': 667, 'name': '淮南', 'parentId': 541, 'code': '131400000', 'isSelected': False}, {'id': 593, 'name': '呼伦贝尔', 'parentId': 534, 'code': '070800000', 'isSelected': False}, {'id': 860, 'name': '汉中', 'parentId': 556, 'code': '270600000', 'isSelected': False}, {'id': 795, 'name': '贺州', 'parentId': 549, 'code': '210400000', 'isSelected': False}, {'id': 837, 'name': '红河', 'parentId': 554, 'code': '251100000', 'isSelected': False}, {'id': 796, 'name': '河池', 'parentId': 549, 'code': '210300000', 'isSelected': False}, {'id': 724, 'name': '鹤壁', 'parentId': 545, 'code': '171600000', 'isSelected': False}, {'id': 879, 'name': '海东', 'parentId': 558, 'code': '290200000', 'isSelected': False}, {'id': 625, 'name': '鹤岗', 'parentId': 537, 'code': '101500000', 'isSelected': False}, {'id': 893, 'name': '哈密', 'parentId': 560, 'code': '311400000', 'isSelected': False}], 'J': [{'id': 702, 'name': '济南', 'parentId': 544, 'code': '160100000', 'isSelected': False}, {'id': 659, 'name': '金华', 'parentId': 540, 'code': '122400000', 'isSelected': False}, {'id': 656, 'name': '嘉兴', 'parentId': 540, 'code': '122100000', 'isSelected': False}, {'id': 769, 'name': '江门', 'parentId': 548, 'code': '202100000', 'isSelected': False}, {'id': 709, 'name': '济宁', 'parentId': 544, 'code': '162300000', 'isSelected': False}, {'id': 582, 'name': '晋中', 'parentId': 533, 'code': '060700000', 'isSelected': False}, {'id': 614, 'name': '吉林', 'parentId': 536, 'code': '091000000', 'isSelected': False}, {'id': 694, 'name': '九江', 'parentId': 543, 'code': '150800000', 'isSelected': False}, {'id': 782, 'name': '揭阳', 'parentId': 548, 'code': '200600000', 'isSelected': False}, {'id': 744, 'name': '荆州', 'parentId': 546, 'code': '181900000', 'isSelected': False}, {'id': 726, 'name': '焦作', 'parentId': 545, 'code': '171800000', 'isSelected': False}, {'id': 605, 'name': '锦州', 'parentId': 535, 'code': '081200000', 'isSelected': False}, {'id': 742, 'name': '荆门', 'parentId': 546, 'code': '181700000', 'isSelected': False}, {'id': 698, 'name': '吉安', 'parentId': 543, 'code': '150400000', 'isSelected': False}, {'id': 692, 'name': '景德镇', 'parentId': 543, 'code': '151000000', 'isSelected': False}, {'id': 580, 'name': '晋城', 'parentId': 533, 'code': '060900000', 'isSelected': False}, {'id': 629, 'name': '佳木斯', 'parentId': 537, 'code': '101100000', 'isSelected': False}, {'id': 872, 'name': '酒泉', 'parentId': 557, 'code': '280600000', 'isSelected': False}, {'id': 107292, 'name': '济源', 'parentId': 545, 'code': '170711000', 'isSelected': False}, {'id': 866, 'name': '金昌', 'parentId': 557, 'code': '281200000', 'isSelected': False}], 'K': [{'id': 831, 'name': '昆明', 'parentId': 554, 'code': '250100000', 'isSelected': False}, {'id': 720, 'name': '开封', 'parentId': 545, 'code': '171200000', 'isSelected': False}, {'id': 891, 'name': '克拉玛依', 'parentId': 560, 'code': '311200000', 'isSelected': False}, {'id': 899, 'name': '喀什', 'parentId': 560, 'code': '311100000', 'isSelected': False}], 'L': [{'id': 864, 'name': '兰州', 'parentId': 557, 'code': '280100000', 'isSelected': False}, {'id': 714, 'name': '临沂', 'parentId': 544, 'code': '162800000', 'isSelected': False}, {'id': 574, 'name': '廊坊', 'parentId': 532, 'code': '050700000', 'isSelected': False}, {'id': 721, 'name': '洛阳', 'parentId': 545, 'code': '171300000', 'isSelected': False}, {'id': 786, 'name': '柳州', 'parentId': 549, 'code': '211300000', 'isSelected': False}, {'id': 677, 'name': '六安', 'parentId': 541, 'code': '130400000', 'isSelected': False}, {'id': 716, 'name': '聊城', 'parentId': 544, 'code': '161500000', 'isSelected': False}, {'id': 642, 'name': '连云港', 'parentId': 539, 'code': '112400000', 'isSelected': False}, {'id': 586, 'name': '吕梁', 'parentId': 533, 'code': '060300000', 'isSelected': False}, {'id': 804, 'name': '泸州', 'parentId': 552, 'code': '231600000', 'isSelected': False}, {'id': 847, 'name': '拉萨', 'parentId': 555, 'code': '260100000', 'isSelected': False}, {'id': 663, 'name': '丽水', 'parentId': 540, 'code': '122800000', 'isSelected': False}, {'id': 810, 'name': '乐山', 'parentId': 552, 'code': '232200000', 'isSelected': False}, {'id': 689, 'name': '龙岩', 'parentId': 542, 'code': '140400000', 'isSelected': False}, {'id': 729, 'name': '漯河', 'parentId': 545, 'code': '171000000', 'isSelected': False}, {'id': 585, 'name': '临汾', 'parentId': 533, 'code': '060400000', 'isSelected': False}, {'id': 823, 'name': '六盘水', 'parentId': 553, 'code': '240200000', 'isSelected': False}, {'id': 821, 'name': '凉山彝族自治州', 'parentId': 552, 'code': '230900000', 'isSelected': False}, {'id': 843, 'name': '丽江', 'parentId': 554, 'code': '250500000', 'isSelected': False}, {'id': 761, 'name': '娄底', 'parentId': 547, 'code': '190200000', 'isSelected': False}, {'id': 713, 'name': '莱芜', 'parentId': 544, 'code': '162700000', 'isSelected': False}, {'id': 616, 'name': '辽源', 'parentId': 536, 'code': '090800000', 'isSelected': False}, {'id': 875, 'name': '陇南', 'parentId': 557, 'code': '280300000', 'isSelected': False}, {'id': 876, 'name': '临夏', 'parentId': 557, 'code': '280200000', 'isSelected': False}, {'id': 904, 'name': '来宾', 'parentId': 549, 'code': '210200000', 'isSelected': False}], 'M': [{'id': 806, 'name': '绵阳', 'parentId': 552, 'code': '231800000', 'isSelected': False}, {'id': 771, 'name': '茂名', 'parentId': 548, 'code': '202300000', 'isSelected': False}, {'id': 668, 'name': '马鞍山', 'parentId': 541, 'code': '131500000', 'isSelected': False}, {'id': 774, 'name': '梅州', 'parentId': 548, 'code': '202600000', 'isSelected': False}, {'id': 631, 'name': '牡丹江', 'parentId': 537, 'code': '100900000', 'isSelected': False}, {'id': 812, 'name': '眉山', 'parentId': 552, 'code': '231300000', 'isSelected': False}], 'N': [{'id': 635, 'name': '南京', 'parentId': 539, 'code': '110100000', 'isSelected': False}, {'id': 654, 'name': '宁波', 'parentId': 540, 'code': '121900000', 'isSelected': False}, {'id': 691, 'name': '南昌', 'parentId': 543, 'code': '150100000', 'isSelected': False}, {'id': 785, 'name': '南宁', 'parentId': 549, 'code': '210100000', 'isSelected': False}, {'id': 641, 'name': '南通', 'parentId': 539, 'code': '112300000', 'isSelected': False}, {'id': 811, 'name': '南充', 'parentId': 552, 'code': '232300000', 'isSelected': False}, {'id': 731, 'name': '南阳', 'parentId': 545, 'code': '170300000', 'isSelected': False}, {'id': 690, 'name': '宁德', 'parentId': 542, 'code': '140300000', 'isSelected': False}, {'id': 809, 'name': '内江', 'parentId': 552, 'code': '232100000', 'isSelected': False}, {'id': 688, 'name': '南平', 'parentId': 542, 'code': '140500000', 'isSelected': False}], 'P': [{'id': 683, 'name': '莆田', 'parentId': 542, 'code': '141000000', 'isSelected': False}, {'id': 727, 'name': '濮阳', 'parentId': 545, 'code': '171900000', 'isSelected': False}, {'id': 693, 'name': '萍乡', 'parentId': 543, 'code': '150900000', 'isSelected': False}, {'id': 722, 'name': '平顶山', 'parentId': 545, 'code': '171400000', 'isSelected': False}, {'id': 803, 'name': '攀枝花', 'parentId': 552, 'code': '231500000', 'isSelected': False}, {'id': 609, 'name': '盘锦', 'parentId': 535, 'code': '080800000', 'isSelected': False}, {'id': 871, 'name': '平凉', 'parentId': 557, 'code': '280700000', 'isSelected': False}, {'id': 10163, 'name': '普洱', 'parentId': 554, 'code': '251700000', 'isSelected': False}], 'Q': [{'id': 703, 'name': '青岛', 'parentId': 544, 'code': '161700000', 'isSelected': False}, {'id': 685, 'name': '泉州', 'parentId': 542, 'code': '140800000', 'isSelected': False}, {'id': 778, 'name': '清远', 'parentId': 548, 'code': '200200000', 'isSelected': False}, {'id': 567, 'name': '秦皇岛', 'parentId': 532, 'code': '051400000', 'isSelected': False}, {'id': 832, 'name': '曲靖', 'parentId': 554, 'code': '251600000', 'isSelected': False}, {'id': 660, 'name': '衢州', 'parentId': 540, 'code': '122500000', 'isSelected': False}, {'id': 623, 'name': '齐齐哈尔', 'parentId': 537, 'code': '101700000', 'isSelected': False}, {'id': 827, 'name': '黔西南', 'parentId': 553, 'code': '240600000', 'isSelected': False}, {'id': 830, 'name': '黔南', 'parentId': 553, 'code': '240900000', 'isSelected': False}, {'id': 829, 'name': '黔东南', 'parentId': 553, 'code': '240800000', 'isSelected': False}, {'id': 791, 'name': '钦州', 'parentId': 549, 'code': '210800000', 'isSelected': False}, {'id': 873, 'name': '庆阳', 'parentId': 557, 'code': '280500000', 'isSelected': False}, {'id': 630, 'name': '七台河', 'parentId': 537, 'code': '101000000', 'isSelected': False}], 'R': [{'id': 712, 'name': '日照', 'parentId': 544, 'code': '162600000', 'isSelected': False}], 'S': [{'id': 765, 'name': '深圳', 'parentId': 548, 'code': '201700000', 'isSelected': False}, {'id': 6, 'name': '上海', 'parentId': 2, 'code': '020100000', 'isSelected': False}, {'id': 639, 'name': '苏州', 'parentId': 539, 'code': '112100000', 'isSelected': False}, {'id': 599, 'name': '沈阳', 'parentId': 535, 'code': '080100000', 'isSelected': False}, {'id': 565, 'name': '石家庄', 'parentId': 532, 'code': '050100000', 'isSelected': False}, {'id': 658, 'name': '绍兴', 'parentId': 540, 'code': '122300000', 'isSelected': False}, {'id': 767, 'name': '汕头', 'parentId': 548, 'code': '201900000', 'isSelected': False}, {'id': 648, 'name': '宿迁', 'parentId': 539, 'code': '113000000', 'isSelected': False}, {'id': 732, 'name': '商丘', 'parentId': 545, 'code': '170400000', 'isSelected': False}, {'id': 800, 'name': '三亚', 'parentId': 550, 'code': '221800000', 'isSelected': False}, {'id': 701, 'name': '上饶', 'parentId': 543, 'code': '151100000', 'isSelected': False}, {'id': 675, 'name': '宿州', 'parentId': 541, 'code': '130200000', 'isSelected': False}, {'id': 753, 'name': '邵阳', 'parentId': 547, 'code': '191000000', 'isSelected': False}, {'id': 738, 'name': '十堰', 'parentId': 546, 'code': '181300000', 'isSelected': False}, {'id': 808, 'name': '遂宁', 'parentId': 552, 'code': '232000000', 'isSelected': False}, {'id': 764, 'name': '韶关', 'parentId': 548, 'code': '201600000', 'isSelected': False}, {'id': 730, 'name': '三门峡', 'parentId': 545, 'code': '170200000', 'isSelected': False}, {'id': 684, 'name': '三明', 'parentId': 542, 'code': '140900000', 'isSelected': False}, {'id': 775, 'name': '汕尾', 'parentId': 548, 'code': '201500000', 'isSelected': False}, {'id': 747, 'name': '随州', 'parentId': 546, 'code': '180200000', 'isSelected': False}, {'id': 907, 'name': '三沙', 'parentId': 550, 'code': '220200000', 'isSelected': False}, {'id': 887, 'name': '石嘴山', 'parentId': 559, 'code': '300200000', 'isSelected': False}, {'id': 633, 'name': '绥化', 'parentId': 537, 'code': '100700000', 'isSelected': False}, {'id': 615, 'name': '四平', 'parentId': 536, 'code': '090900000', 'isSelected': False}, {'id': 619, 'name': '松原', 'parentId': 536, 'code': '090500000', 'isSelected': False}, {'id': 581, 'name': '朔州', 'parentId': 533, 'code': '060800000', 'isSelected': False}, {'id': 863, 'name': '商洛', 'parentId': 556, 'code': '270300000', 'isSelected': False}], 'T': [{'id': 7, 'name': '天津', 'parentId': 3, 'code': '030100000', 'isSelected': False}, {'id': 576, 'name': '太原', 'parentId': 533, 'code': '060100000', 'isSelected': False}, {'id': 566, 'name': '唐山', 'parentId': 532, 'code': '051500000', 'isSelected': False}, {'id': 662, 'name': '台州', 'parentId': 540, 'code': '122700000', 'isSelected': False}, {'id': 710, 'name': '泰安', 'parentId': 544, 'code': '162400000', 'isSelected': False}, {'id': 647, 'name': '泰州', 'parentId': 539, 'code': '112900000', 'isSelected': False}, {'id': 868, 'name': '天水', 'parentId': 557, 'code': '281000000', 'isSelected': False}, {'id': 591, 'name': '通辽', 'parentId': 534, 'code': '071000000', 'isSelected': False}, {'id': 670, 'name': '铜陵', 'parentId': 541, 'code': '131700000', 'isSelected': False}, {'id': 108355, 'name': '台湾', 'parentId': 563, 'code': '340100000', 'isSelected': False}, {'id': 826, 'name': '铜仁', 'parentId': 553, 'code': '240500000', 'isSelected': False}, {'id': 855, 'name': '铜川', 'parentId': 556, 'code': '271100000', 'isSelected': False}, {'id': 610, 'name': '铁岭', 'parentId': 535, 'code': '080700000', 'isSelected': False}, {'id': 902, 'name': '塔城', 'parentId': 560, 'code': '310300000', 'isSelected': False}, {'id': 107384, 'name': '天门', 'parentId': 546, 'code': '180311000', 'isSelected': False}, {'id': 617, 'name': '通化', 'parentId': 536, 'code': '090700000', 'isSelected': False}], 'W': [{'id': 736, 'name': '武汉', 'parentId': 546, 'code': '180100000', 'isSelected': False}, {'id': 636, 'name': '无锡', 'parentId': 539, 'code': '111800000', 'isSelected': False}, {'id': 655, 'name': '温州', 'parentId': 540, 'code': '122000000', 'isSelected': False}, {'id': 708, 'name': '潍坊', 'parentId': 544, 'code': '162200000', 'isSelected': False}, {'id': 890, 'name': '乌鲁木齐', 'parentId': 560, 'code': '310100000', 'isSelected': False}, {'id': 665, 'name': '芜湖', 'parentId': 541, 'code': '131200000', 'isSelected': False}, {'id': 711, 'name': '威海', 'parentId': 544, 'code': '162500000', 'isSelected': False}, {'id': 858, 'name': '渭南', 'parentId': 556, 'code': '270800000', 'isSelected': False}, {'id': 788, 'name': '梧州', 'parentId': 549, 'code': '211100000', 'isSelected': False}, {'id': 888, 'name': '吴忠', 'parentId': 559, 'code': '300300000', 'isSelected': False}, {'id': 596, 'name': '乌兰察布', 'parentId': 534, 'code': '070500000', 'isSelected': False}, {'id': 838, 'name': '文山', 'parentId': 554, 'code': '251000000', 'isSelected': False}, {'id': 589, 'name': '乌海', 'parentId': 534, 'code': '071200000', 'isSelected': False}], 'X': [{'id': 854, 'name': '西安', 'parentId': 556, 'code': '270100000', 'isSelected': False}, {'id': 682, 'name': '厦门', 'parentId': 542, 'code': '141100000', 'isSelected': False}, {'id': 637, 'name': '徐州', 'parentId': 539, 'code': '111900000', 'isSelected': False}, {'id': 725, 'name': '新乡', 'parentId': 545, 'code': '171700000', 'isSelected': False}, {'id': 878, 'name': '西宁', 'parentId': 558, 'code': '290100000', 'isSelected': False}, {'id': 857, 'name': '咸阳', 'parentId': 556, 'code': '270900000', 'isSelected': False}, {'id': 728, 'name': '许昌', 'parentId': 545, 'code': '171100000', 'isSelected': False}, {'id': 569, 'name': '邢台', 'parentId': 532, 'code': '051200000', 'isSelected': False}, {'id': 743, 'name': '孝感', 'parentId': 546, 'code': '181800000', 'isSelected': False}, {'id': 740, 'name': '襄阳', 'parentId': 546, 'code': '181500000', 'isSelected': False}, {'id': 105794, 'name': '香港特别行政区', 'parentId': 561, 'code': '320100000', 'isSelected': False}, {'id': 733, 'name': '信阳', 'parentId': 545, 'code': '170500000', 'isSelected': False}, {'id': 751, 'name': '湘潭', 'parentId': 547, 'code': '191200000', 'isSelected': False}, {'id': 746, 'name': '咸宁', 'parentId': 546, 'code': '181000000', 'isSelected': False}, {'id': 584, 'name': '忻州', 'parentId': 533, 'code': '060500000', 'isSelected': False}, {'id': 680, 'name': '宣城', 'parentId': 541, 'code': '130700000', 'isSelected': False}, {'id': 840, 'name': '西双版纳', 'parentId': 554, 'code': '250800000', 'isSelected': False}, {'id': 762, 'name': '湘西土家族苗族自治州', 'parentId': 547, 'code': '191400000', 'isSelected': False}, {'id': 695, 'name': '新余', 'parentId': 543, 'code': '150700000', 'isSelected': False}, {'id': 594, 'name': '兴安盟', 'parentId': 534, 'code': '070700000', 'isSelected': False}], 'Y': [{'id': 707, 'name': '烟台', 'parentId': 544, 'code': '162100000', 'isSelected': False}, {'id': 645, 'name': '扬州', 'parentId': 539, 'code': '112700000', 'isSelected': False}, {'id': 886, 'name': '银川', 'parentId': 559, 'code': '300100000', 'isSelected': False}, {'id': 644, 'name': '盐城', 'parentId': 539, 'code': '112600000', 'isSelected': False}, {'id': 739, 'name': '宜昌', 'parentId': 546, 'code': '181400000', 'isSelected': False}, {'id': 754, 'name': '岳阳', 'parentId': 547, 'code': '190900000', 'isSelected': False}, {'id': 699, 'name': '宜春', 'parentId': 543, 'code': '150300000', 'isSelected': False}, {'id': 777, 'name': '阳江', 'parentId': 548, 'code': '201300000', 'isSelected': False}, {'id': 793, 'name': '玉林', 'parentId': 549, 'code': '210600000', 'isSelected': False}, {'id': 833, 'name': '玉溪', 'parentId': 554, 'code': '251500000', 'isSelected': False}, {'id': 757, 'name': '益阳', 'parentId': 547, 'code': '190600000', 'isSelected': False}, {'id': 813, 'name': '宜宾', 'parentId': 552, 'code': '231200000', 'isSelected': False}, {'id': 583, 'name': '运城', 'parentId': 533, 'code': '060600000', 'isSelected': False}, {'id': 861, 'name': '榆林', 'parentId': 556, 'code': '270500000', 'isSelected': False}, {'id': 783, 'name': '云浮', 'parentId': 548, 'code': '200700000', 'isSelected': False}, {'id': 759, 'name': '永州', 'parentId': 547, 'code': '190400000', 'isSelected': False}, {'id': 606, 'name': '营口', 'parentId': 535, 'code': '081100000', 'isSelected': False}, {'id': 859, 'name': '延安', 'parentId': 556, 'code': '270700000', 'isSelected': False}, {'id': 696, 'name': '鹰潭', 'parentId': 543, 'code': '150600000', 'isSelected': False}, {'id': 621, 'name': '延边', 'parentId': 536, 'code': '090300000', 'isSelected': False}, {'id': 901, 'name': '伊犁', 'parentId': 560, 'code': '310200000', 'isSelected': False}, {'id': 578, 'name': '阳泉', 'parentId': 533, 'code': '061100000', 'isSelected': False}, {'id': 816, 'name': '雅安', 'parentId': 552, 'code': '230400000', 'isSelected': False}], 'Z': [{'id': 719, 'name': '郑州', 'parentId': 545, 'code': '170100000', 'isSelected': False}, {'id': 766, 'name': '珠海', 'parentId': 548, 'code': '201800000', 'isSelected': False}, {'id': 780, 'name': '中山', 'parentId': 548, 'code': '200400000', 'isSelected': False}, {'id': 704, 'name': '淄博', 'parentId': 544, 'code': '161800000', 'isSelected': False}, {'id': 750, 'name': '株洲', 'parentId': 547, 'code': '191300000', 'isSelected': False}, {'id': 824, 'name': '遵义', 'parentId': 553, 'code': '240300000', 'isSelected': False}, {'id': 770, 'name': '湛江', 'parentId': 548, 'code': '202200000', 'isSelected': False}, {'id': 772, 'name': '肇庆', 'parentId': 548, 'code': '202400000', 'isSelected': False}, {'id': 646, 'name': '镇江', 'parentId': 539, 'code': '112800000', 'isSelected': False}, {'id': 571, 'name': '张家口', 'parentId': 532, 'code': '051000000', 'isSelected': False}, {'id': 734, 'name': '周口', 'parentId': 545, 'code': '170600000', 'isSelected': False}, {'id': 687, 'name': '漳州', 'parentId': 542, 'code': '140600000', 'isSelected': False}, {'id': 735, 'name': '驻马店', 'parentId': 545, 'code': '170700000', 'isSelected': False}, {'id': 705, 'name': '枣庄', 'parentId': 544, 'code': '161900000', 'isSelected': False}, {'id': 579, 'name': '长治', 'parentId': 533, 'code': '061000000', 'isSelected': False}, {'id': 661, 'name': '舟山', 'parentId': 540, 'code': '122600000', 'isSelected': False}, {'id': 835, 'name': '昭通', 'parentId': 554, 'code': '251300000', 'isSelected': False}, {'id': 818, 'name': '资阳', 'parentId': 552, 'code': '230600000', 'isSelected': False}, {'id': 870, 'name': '张掖', 'parentId': 557, 'code': '280800000', 'isSelected': False}, {'id': 802, 'name': '自贡', 'parentId': 552, 'code': '231400000', 'isSelected': False}, {'id': 906, 'name': '中卫', 'parentId': 559, 'code': '300500000', 'isSelected': False}, {'id': 756, 'name': '张家界', 'parentId': 547, 'code': '190700000', 'isSelected': False}]}}, 'rows': []}}
<class 'dict'>
------------3.提取name-----------
['安阳', '鞍山', '澳门特别行政区', '安庆', '安顺', '阿勒泰', '阿克苏', '安康', '阿坝藏族羌族自治州', '阿拉善盟', '北京', '保定', '蚌埠', '包头', '滨州', '宝鸡', '亳州', '北海', '百色', '巴中', '毕节', '本溪', '巴音郭楞', '保山', '巴彦淖尔', '博尔塔拉', '白城', '白山', '成都', '长沙', '重庆', '长春', '常州', '沧州', '赤峰', '郴州', '潮州', '常德', '滁州', '朝阳', '承德', '池州', '楚雄', '昌吉', '崇左', '东莞', '大连', '德州', '大庆', '德阳', '东营', '大同', '达州', '大理', '丹东', '定西', '德宏', '儋州', '迪庆', '鄂州', '恩施', '鄂尔多斯', '佛山', '福州', '阜阳', '抚州', '抚顺', '阜新', '防城港', '广州', '贵阳', '桂林', '赣州', '广元', '贵港', '广安', '固原', '甘孜藏族自治州', '杭州', '合肥', '惠州', '哈尔滨', '海口', '呼和浩特', '邯郸', '湖州', '衡阳', '海外', '淮安', '菏泽', '衡水', '河源', '怀化', '黄冈', '黄石', '黄山', '葫芦岛', '淮北', '淮南', '呼伦贝尔', '汉中', '贺州', '红河', '河池', '鹤壁', '海东', '鹤岗', '哈密', '济南', '金华', '嘉兴', '江门', '济宁', '晋中', '吉林', '九江', '揭阳', '荆州', '焦作', '锦州', '荆门', '吉安', '景德镇', '晋城', '佳木斯', '酒泉', '济源', '金昌', '昆明', '开封', '克拉玛依', '喀什', '兰州', '临沂', '廊坊', '洛阳', '柳州', '六安', '聊城', '连云港', '吕梁', '泸州', '拉萨', '丽水', '乐山', '龙岩', '漯河', '临汾', '六盘水', '凉山彝族自治州', '丽江', '娄底', '莱芜', '辽源', '陇南', '临夏', '来宾', '绵阳', '茂名', '马鞍山', '梅州', '牡丹江', '眉山', '南京', '宁波', '南昌', '南宁', '南通', '南充', '南阳', '宁德', '内江', '南平', '莆田', '濮阳', '萍乡', '平顶山', '攀枝花', '盘锦', '平凉', '普洱', '青岛', '泉州', '清远', '秦皇岛', '曲靖', '衢州', '齐齐哈尔', '黔西南', '黔南', '黔东南', '钦州', '庆阳', '七台河', '日照', '深圳', '上海', '苏州', '沈阳', '石家庄', '绍兴', '汕头', '宿迁', '商丘', '三亚', '上饶', '宿州', '邵阳', '十堰', '遂宁', '韶关', '三门峡', '三明', '汕尾', '随州', '三沙', '石嘴山', '绥化', '四平', '松原', '朔州', '商洛', '天津', '太原', '唐山', '台州', '泰安', '泰州', '天水', '通辽', '铜陵', '台湾', '铜仁', '铜川', '铁岭', '塔城', '天门', '通化', '武汉', '无锡', '温州', '潍坊', '乌鲁木齐', '芜湖', '威海', '渭南', '梧州', '吴忠', '乌兰察布', '文山', '乌海', '西安', '厦门', '徐州', '新乡', '西宁', '咸阳', '许昌', '邢台', '孝感', '襄阳', '香港特别行政区', '信阳', '湘潭', '咸宁', '忻州', '宣城', '西双版纳', '湘西土家族苗族自治州', '新余', '兴安盟', '烟台', '扬州', '银川', '盐城', '宜昌', '岳阳', '宜春', '阳江', '玉林', '玉溪', '益阳', '宜宾', '运城', '榆林', '云浮', '永州', '营口', '延安', '鹰潭', '延边', '伊犁', '阳泉', '雅安', '郑州', '珠海', '中山', '淄博', '株洲', '遵义', '湛江', '肇庆', '镇江', '张家口', '周口', '漳州', '驻马店', '枣庄', '长治', '舟山', '昭通', '资阳', '张掖', '自贡', '中卫', '张家界']
<class 'list'>
------------4.json格式,类型为str-----------
["安阳", "鞍山", "澳门特别行政区", "安庆", "安顺", "阿勒泰", "阿克苏", "安康", "阿坝藏族羌族自治州", "阿拉善盟", "北京", "保定", "蚌埠", "包头", "滨州", "宝鸡", "亳州", "北海", "百色", "巴中", "毕节", "本溪", "巴音郭楞", "保山", "巴彦淖尔", "博尔塔拉", "白城", "白山", "成都", "长沙", "重庆", "长春", "常州", "沧州", "赤峰", "郴州", "潮州", "常德", "滁州", "朝阳", "承德", "池州", "楚雄", "昌吉", "崇左", "东莞", "大连", "德州", "大庆", "德阳", "东营", "大同", "达州", "大理", "丹东", "定西", "德宏", "儋州", "迪庆", "鄂州", "恩施", "鄂尔多斯", "佛山", "福州", "阜阳", "抚州", "抚顺", "阜新", "防城港", "广州", "贵阳", "桂林", "赣州", "广元", "贵港", "广安", "固原", "甘孜藏族自治州", "杭州", "合肥", "惠州", "哈尔滨", "海口", "呼和浩特", "邯郸", "湖州", "衡阳", "海外", "淮安", "菏泽", "衡水", "河源", "怀化", "黄冈", "黄石", "黄山", "葫芦岛", "淮北", "淮南", "呼伦贝尔", "汉中", "贺州", "红河", "河池", "鹤壁", "海东", "鹤岗", "哈密", "济南", "金华", "嘉兴", "江门", "济宁", "晋中", "吉林", "九江", "揭阳", "荆州", "焦作", "锦州", "荆门", "吉安", "景德镇", "晋城", "佳木斯", "酒泉", "济源", "金昌", "昆明", "开封", "克拉玛依", "喀什", "兰州", "临沂", "廊坊", "洛阳", "柳州", "六安", "聊城", "连云港", "吕梁", "泸州", "拉萨", "丽水", "乐山", "龙岩", "漯河", "临汾", "六盘水", "凉山彝族自治州", "丽江", "娄底", "莱芜", "辽源", "陇南", "临夏", "来宾", "绵阳", "茂名", "马鞍山", "梅州", "牡丹江", "眉山", "南京", "宁波", "南昌", "南宁", "南通", "南充", "南阳", "宁德", "内江", "南平", "莆田", "濮阳", "萍乡", "平顶山", "攀枝花", "盘锦", "平凉", "普洱", "青岛", "泉州", "清远", "秦皇岛", "曲靖", "衢州", "齐齐哈尔", "黔西南", "黔南", "黔东南", "钦州", "庆阳", "七台河", "日照", "深圳", "上海", "苏州", "沈阳", "石家庄", "绍兴", "汕头", "宿迁", "商丘", "三亚", "上饶", "宿州", "邵阳", "十堰", "遂宁", "韶关", "三门峡", "三明", "汕尾", "随州", "三沙", "石嘴山", "绥化", "四平", "松原", "朔州", "商洛", "天津", "太原", "唐山", "台州", "泰安", "泰州", "天水", "通辽", "铜陵", "台湾", "铜仁", "铜川", "铁岭", "塔城", "天门", "通化", "武汉", "无锡", "温州", "潍坊", "乌鲁木齐", "芜湖", "威海", "渭南", "梧州", "吴忠", "乌兰察布", "文山", "乌海", "西安", "厦门", "徐州", "新乡", "西宁", "咸阳", "许昌", "邢台", "孝感", "襄阳", "香港特别行政区", "信阳", "湘潭", "咸宁", "忻州", "宣城", "西双版纳", "湘西土家族苗族自治州", "新余", "兴安盟", "烟台", "扬州", "银川", "盐城", "宜昌", "岳阳", "宜春", "阳江", "玉林", "玉溪", "益阳", "宜宾", "运城", "榆林", "云浮", "永州", "营口", "延安", "鹰潭", "延边", "伊犁", "阳泉", "雅安", "郑州", "珠海", "中山", "淄博", "株洲", "遵义", "湛江", "肇庆", "镇江", "张家口", "周口", "漳州", "驻马店", "枣庄", "长治", "舟山", "昭通", "资阳", "张掖", "自贡", "中卫", "张家界"]
<class 'str'>

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.mzph.cn/news/452015.shtml

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

创建型模式二:工厂方法模式

1. 工厂模式介绍 工厂模式&#xff08;Factory Pattern&#xff09;的意义就跟它的名字一样&#xff0c;在面向对象程序设计中&#xff0c;工厂通常是一个用来创建其他对象的对象。工厂模式根据不同的参数来实现不同的分配方案和创建对象。 在工厂模式中&#xff0c;我们在创建…

spring 的4种事务管理(1种编程式+3种声明式)

见&#xff1a;http://blog.csdn.net/sinat_25926481/article/details/48208619 Spring的4种事务管理&#xff08;1种编程式事务三种声明事务&#xff09; 一、Spring事务的介绍 二、编程式事务xml的配置 注入后直接在service层调用模板的方法使用 三、基于AOP方式的声明式事务…

如何创造出更优秀的用户体验?

对于互联网公司来说&#xff0c;用户体验起到至关重要的作用&#xff0c;能否给用户留下深刻的印象&#xff1b;开发出的产品是否实用、易用&#xff1f;等等这些都是开发者必将思考的话题。当有用性一样的时候&#xff0c;大家的竞争重点就是易用性了&#xff0c;这就是互联网…

GitHub(从安装到使用)

一、安装Git for Windows&#xff08;又名msysgit&#xff09; 下载地址: https://git-for-windows.github.io/ 在官方下载完后&#xff0c;安装到Windows Explorer integration的时候&#xff0c;将选项中将“Git Bash here”和“Git GUI here”打对勾。 然后就一直next直到Fi…

Spring事务配置的五种方式和spring里面事务的传播属性和事务隔离级别、不可重复读与幻读的区别

前些天发现了一个巨牛的人工智能学习网站&#xff0c;通俗易懂&#xff0c;风趣幽默&#xff0c;忍不住分享一下给大家。点击跳转到教程。 spring事务配置的五种方式 前段时间对Spring的事务配置做了比较深入的研究&#xff0c;在此之间对Spring的事务配置虽说也配置过&#x…

Google编程之夏入围项目公布

Google编程之夏&#xff08;Google Summer of Code&#xff09;&#xff0c;是由Google公司所主办的年度程式设计比赛&#xff0c;第一届从2005年开始。“Summer of Code”之名取自1967年的“夏日之爱”&#xff08;Summer of Love&#xff09;风潮。比赛的主要目的是鼓励学生参…

微软:软件帝王的复兴之路

可以说在过去的两个月IT界所发生的一切都非同寻常&#xff0c;乔布斯辞职了&#xff0c;Google把Motorola并购了&#xff0c;微软炫了一下Windows 8&#xff0c;还宣布开始用ARM了&#xff0c;Google开始和英特尔合作了&#xff0c;AT&T与T-Mobile的并购也在紧密锣鼓进行中…

Eclipse GBK批量转UTF-8插件(转)

最近需要把Android项目转Android Studio&#xff0c;由于之前是eclipse开发&#xff0c;而且坑爹的是编码还是GBK的&#xff0c;转到Android Studio中文都是乱码&#xff0c;如果一个文件一个文件ctrlc的话&#xff0c;想想就累&#xff0c;几经Google&#xff0c;发现一个很好…

网络爬虫--15.【糗事百科实战】多线程实现

文章目录一. Queue&#xff08;队列对象&#xff09;二. 多线程示意图三. 代码示例一. Queue&#xff08;队列对象&#xff09; Queue是python中的标准库&#xff0c;可以直接import Queue引用;队列是线程间最常用的交换数据的形式 python下多线程的思考 对于资源&#xff0…

网络爬虫--16.BeautifulSoup4

文章目录一. BeautifulSoup4二. 解析实例三. 四大对象种类1. Tag2. NavigableString3. BeautifulSoup4. Comment四. 遍历文档树1.直接子节点 &#xff1a;.contents .children 属性1). .contents2). .children2. 所有子孙节点: .descendants 属性3. 节点内容: .string 属性五. …

【LA3415 训练指南】保守的老师 【二分图最大独立集,最小割】

题意 Frank是一个思想有些保守的高中老师。有一次&#xff0c;他需要带一些学生出去旅行&#xff0c;但又怕其中一些学生在旅行中萌生爱意。为了降低这种事情发生的概率&#xff0c;他决定确保带出去的任意两个学生至少要满足下面四条中的一条。 1.身高相差大于40厘米 2.性别相…

行车记录仪稳定方案:TC358778XBG:RGB转MIPI DSI芯片,M-Star标配IC

原厂&#xff1a;Toshiba型号&#xff1a;TC358778XBG功能&#xff1a;TC358778XBG是一颗将RGB信号转换成MIPI DSI的芯片&#xff0c;最高分辨率支持到1920x1200&#xff0c;其应用图如下&#xff1a;产品特征&#xff1a;MIPI接口&#xff1a;&#xff08;1&#xff09;、支持…

java.sql.SQLException: 无法转换为内部表示之解决

前些天发现了一个巨牛的人工智能学习网站&#xff0c;通俗易懂&#xff0c;风趣幽默&#xff0c;忍不住分享一下给大家。点击跳转到教程。 这个错是因为 数据库中字段类型和程序中该字段类型不一致。 比如程序将某字段当做Integer类型&#xff0c; 而数据库存储又使用另外一…

网络爬虫--17.【BeautifuSoup4实战】爬取腾讯社招

文章目录一.要求二.代码示例一.要求 以腾讯社招页面来做演示&#xff1a;http://hr.tencent.com/position.php?&start10#a 使用BeautifuSoup4解析器&#xff0c;将招聘网页上的职位名称、职位类别、招聘人数、工作地点、发布时间&#xff0c;以及每个职位详情的点击链接…

彻底搞清楚Android中的 Attr

版权声明&#xff1a;本文为sydMobile原创文章&#xff0c;转载请务必注明出处&#xff01; https://blog.csdn.net/sydMobile/article/details/79978187 相信这个词对于Android开发者来说十分熟悉了&#xff0c;那么你对他到底有多了解呢&#xff1f; 回忆起我刚开始接触Andr…

D. Relatively Prime Graph

Lets call an undirected graph G(V,E)G(V,E) relatively prime if and only if for each edge (v,u)∈E(v,u)∈E GCD(v,u)1GCD(v,u)1 (the greatest common divisor of vv and uu is 11). If there is no edge between some pair of vertices vv and uu then the value of GC…

网络爬虫--19.【Scrapy-Redis实战】分布式爬虫爬取房天下--环境准备

文章目录0. 思路一. 虚拟机Ubuntu0中安装Redis二. 虚拟机Ubuntu1中安装Redis三. Windows服务器上安装Redis四. 安装cmder五. 安装RedisDesktopManager六. 修改Windows中的配置文件redis.windows.conf七. Ubuntu连接Windows上 的Redis服务器-----------------------------------…

tkinter中scale拖拉改变值控件(十一)

scale拖拉改变值控件 使用户通过拖拽改变值 简单的实现&#xff1a; 1 import tkinter2 3 wuya tkinter.Tk() 4 wuya.title("wuya") 5 wuya.geometry("300x2001020") 6 7 8 # 创建对象 9 scale1 tkinter.Scale(wuya, from_0, to100) 10 scale1.pac…

计算机图形学理论(4):缓冲区

本系列根据国外一个图形小哥的讲解为本&#xff0c;整合互联网的一些资料&#xff0c;结合自己的一些理解。 什么是缓冲区&#xff1f; 缓冲区是保存某些数据的临时存储空间。 为什么我们需要缓冲区&#xff1f;原因很简单&#xff0c;当数据量很大时&#xff0c;因为计算机无…

网络爬虫--20.【Scrapy-Redis实战】分布式爬虫获取房天下--代码实现

文章目录一. 案例介绍二.创建项目三. settings.py配置四. 详细代码五. 部署1. windows环境下生成requirements.txt文件2. xshell连接ubuntu服务器并安装依赖环境3. 修改部分代码4. 上传代码至服务器并运行一. 案例介绍 爬取房天下&#xff08;https://www1.fang.com/&#xff…