糗百爬图片

2019-04-15 17:54发布

运行环境:python3.3
#-*- coding:utf-8 -*- import re; import os; import urllib; import urllib.request; list=[]; os.mkdir(os.getcwd()+"\pic"); reg=re.compile(r"class="thumb"> );
for i in range(1,36):
    openurl=urllib.request.urlopen(