def get_signin_vcode(cookie, codeString):
 url = ''.join([const.PASSPORT_BASE, 'cgi-bin/genimage?', codeString])
 headers = {'Cookie': cookie.header_output(), 'Referer': const.REFERER}
 req = net.urlopen(url, headers=headers)
 if req:
  return req.data
 else:
  return None

def get_signin_vcode ( cookie , codeString ) : url = '' . join ( [ const . PASSPORT_BASE , 'cgi-bin/genimage?' , codeString ] ) headers = { 'Cookie' : cookie . header_output ( ) , 'Referer' : const . REFERER } req = net . urlopen ( url , headers = headers ) if req : return req . data else : return None
codestring - 调用check_login()时返回的codestring .