- 博客(5)
- 收藏
- 关注
原创 pandas 行列筛选
# -*- coding:utf-8 -*- """ @author:Kameiro @file:patzon.py @time:2018/3/2918:25 """ import pandas as pd,numpy as np import numpy as np from pandas import DataFrame sourcedata=pd.read_excel('F:/on.xlsx...
2018-03-30 10:12:30
513
转载 requests 库的(stream)
查找requests的相应资料 By default, when you make a request, the body of the response is downloaded immediately. You can override this behaviour and defer downloading the response body until you acce
2017-12-15 12:48:11
1511
原创 requests笔记
cookiejar和dict类cookie之间转换 #将CookieJar转为字典: cookies = requests.utils.dict_from_cookiejar(r.cookies) #将字典转为CookieJar: cookies = requests.utils.cookiejar_from_dict(cookie_dict, cookiejar=None, overwri...
2017-06-30 17:44:24
284
原创 Python3中urllib学习笔记
get请求 urllib.request.urlopen最简单的方式 url='https://www.baidu.com/' response = urllib.request.urlopen(url) buff = response.read() #显示 html = buff.decode("utf8") response.close() print(html) 使用Request的方式 ur
2017-06-19 15:34:43
1978
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人