电子灵魂

golang,go,C#,JAVA,PYTHON,PHP

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理
    # req = requests.Request(url=url, headers=headers, data=data)
    # html = requests.get(req)
    # print(html.json())
    req = request.Request(url)
    req.headers = headers
    # req.data = bytes(data)
    html = urllib.request.urlopen(req)
    print(type(html))
    # print(html.read())
    result = json.load(html)
    for item in result['data']['result']:
        # map = item['result']
        j = 0
        for i in item.split('|'):
            print(j, i)
            j += 1
        # print(item.split('|'))
posted on 2018-10-21 12:54  conncent  阅读(2090)  评论(0编辑  收藏  举报