摘要: 1、安装 2、requests.get(url,headers = headers) 作用:向网站请求并获取响应对象 2、响应对象res属性 1、res.text:获取响应内容,字符串 2、res.content:响应内容,bytes 3、res.status_code:http响应码 4、res. 阅读全文
posted @ 2019-06-26 14:58 为挽月明 阅读(191) 评论(0) 推荐(0) 编辑
摘要: 1、pymongo的使用 前三步为创建对象 第一步创建连接对象 conn = pymongo.MongoClient('IP地址',27017) 第二步创建库 db = conn['库名'] 第三步创建表 myset = db['集合名'] 第四步把数据插入数据库 myset.inset.one({ 阅读全文
posted @ 2019-06-26 11:24 为挽月明 阅读(1168) 评论(0) 推荐(0) 编辑
hello word


为挽月明© liclap@Foxmail.com