urllib - Python: Traceback namerror -
traceback <most recent call last>: file "wexec.py", line 37, in <module> urlopen = urllib.urlopen('%xs' % (hcon)) nameerror: name 'hcon' not defined
i problem doing code in python:
def hell(): hcon = raw_input(fore.red + style.bright + "website: ") h1 = httplib.httpconnection('%s' % (hcon)) urlopen = urllib.urlopen('%s' % (hcon)) hell()
as can see, don't see problem @ all. giving error. do?
Comments
Post a Comment