[新手上路]批处理新手入门导读[视频教程]批处理基础视频教程[视频教程]VBS基础视频教程[批处理精品]批处理版照片整理器
[批处理精品]纯批处理备份&还原驱动[批处理精品]CMD命令50条不能说的秘密[在线下载]第三方命令行工具[在线帮助]VBScript / JScript 在线参考
返回列表 发帖
本帖最后由 codegay 于 2018-6-28 22:01 编辑
  1. # -*- coding: utf-8 -*-
  2. """
  3. Created on Thu Jun 28 14:46:56 2018
  4. @author: codegay
  5. python3 & 编辑器 == spyder3
  6. """
  7. import requests
  8. session = requests.Session()
  9. url = "http://www.yngp.com/bulletin.do?method=moreListQuery&current=1&rowCount=10000&searchPhrase=&sign=0&query_bulletintitle=造价&query_sign=1&flag=0&listSign=0&districtCode=all"
  10. httphead = {
  11.         'x-requested-with': 'XMLHttpRequest'
  12.         }
  13. res = session.get(url, headers=httphead)
  14. print(res.json())
复制代码
去学去写去用才有进步。安装python3代码存为xx.py 双击运行或右键用IDLE打开按F5运行

TOP

返回列表