赞
踩
response.text 输出内容不全,用以下方法获取完整输出
url = 'http://www.chongyang.net/thinktank/detail?id=6887&k=2'
response = requests.get(url)
req_html=''
for chunk in response.iter_lines():
req_html+=chunk.decode('utf-8')
print(req_html)#完整输出
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。