最新回答 / 慕斯8352703
改成 from urllib.parse import urljoin new_full_url = urljoin(page_url, new_url)
2020-01-22
最赞回答 / 慕UI7096351
url = "https://wwww.baidu.com/" response = request.urlopen(url) print(response.getcode()) print(response.read()) 应该用urlopen方法 request.Request是构建一个完整的请求: req = urllib.request.Request(url) response ...
2019-12-30