(url, type='captcha')
return img_path
图片下载
    :param url:
    :param type:
    :return:
图片下载
    :param url:
    :param type:
    :return:
图片下载 : param url : : param type : : return :
def pic_download(url, type='captcha'):
    """
    图片下载
    :param url:
    :param type:
    :return:
    """
    img_path = os.path.abspath('...') + '\\' + '{}.jpg'.format(type)
    print(img_path)
    img_data = session.get(url).content
    with open(img_path, 'wb') as f:
        f.write(img_data)
    return img_path
def pic_download ( url , type = 'captcha' ) : img_path = os . path . abspath ( '...' ) + '\\' + '{}.jpg' . format ( type ) print ( img_path ) img_data = session . get ( url ) . content with open ( img_path , 'wb' ) as f : f . write ( img_data ) return img_path