python我的爬虫笔记
# *壹 #from urllib import request,parse # 1 #request.urlretrieve('http://www.baidu.com','aaa.html') # # 2 # reas = request.urlopen('http://www.baidu.com') # print(reas.getcode()) # # 3 # a = parse.urlencode({'我是':1,'你是':2,'它是':3}) # print(a) # print(parse.parse_qs(a)) # # 4 # url = 'https://www.baidu
用户评论