Traceback <most recent call last>:
File "wexec.py", line 37, in <module>
urlopen = urllib.urlopen('%xs' % (hcon))
NameError: name 'hcon' is not defined
我用python编写代码时遇到了这个问题:
def hell():
hcon = raw_input(Fore.RED + Style.BRIGHT + "Website: ")
h1 = httplib.HTTPConnection('%s' % (hcon))
urlopen = urllib.urlopen('%s' % (hcon))
hell()
如你所见,我看不出有什么问题。但有些东西给了它这个错误。我该怎么办?你知道吗
目前没有回答
相关问题 更多 >
编程相关推荐