parameters: (url, type='captcha')
return_statement: return img_path
docstring: 图片下载
      :param url:
      :param type:
      :return:
docstring_summary: 图片下载
      :param url:
      :param type:
      :return:
docstring_tokens: 图片下载 : param url : : param type : : return :
function: 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
function_tokens: 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