摘要: import urllib.request import http.cookiejar url = 'http://www.baidu.com/' # 方法一 print('方法一') req_one = urllib.request.Request(url) req_one.add_header('User-Agent', 'Mozilla/6.0') res_one = urllib.r... 阅读全文
posted @ 2017-12-05 17:30 Ocean丶 阅读(8851) 评论(0) 推荐(0)