#发送无参数的get请求import requests def get_html(url): res = requests.get(url) return res.text
#发送无参数的post请求 import requests def get_html(url): res = requests.post(url) return res.text
python中requests
原文:http://www.cnblogs.com/LarryGen/p/5424166.html