摘要: 1 import urllib.request 2 url = "http://www.baidu.com/s?wd=" #get网址格式:“https://www.baidu.com/s?wd=关键字” 3 key="周杰伦" 4 key_code=urllib.request.quote(key) # 汉字编码转化 5 url_all=url+key_code ... 阅读全文
posted @ 2018-08-25 16:49 饭桶大叔 阅读(161) 评论(0) 推荐(0) 编辑