发布时间:2019-09-10 08:55:29编辑:auto阅读(1723)
import urllib
import urllib2
import json
if __name__ == "__main__":
d = '{"pageIndex":0,"pageSize":30,"title":""}'
request = urllib2.Request(ajax_url, d)
request.add_header("Content-Type", "application/json; charset=utf-8")
print request.headers
f = urllib2.urlopen(request) #'{"pageIndex":0,"pageSize":15,"title":""}'
content = f.read()
content = rss_content.decode("gbk")
content = json.loads(content)
上一篇: Python: Apply方法的应用
下一篇: Python的包导入机制
47850
46410
37292
34741
29322
25979
24924
19959
19550
18037
5800°
6422°
5937°
5966°
7074°
5921°
5952°
6447°
6409°
7788°