一个很好可以获取所有的小写字母
import string
for word in string.ascii_lowercase:
print (word)
一个很好的可以把str加入到其他str中
start_list = "https://www.autohome.com.cn/grade/carhtml/{}.html"
start_list = [start_list.format(word) for word in string.ascii_lowercase]
把图片下载下来
respons = requests.get(img, headers=headers)
with open(r'C:/Users/admin/Desktop/img/%s.jpg'%img[-8:-4],'wb')as f:
f.write(respons.content)
最近在python3.5中运行scrapy,但scrapy没有安装,用pip install scrapy,总是报错
error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": http://landinghub.visualstudio.com/visual-cpp-build-tools
网友评论