我有一个运行良好的 python 脚本,但是当我尝试启动它时突然开始抛出这个:
Traceback (most recent call last):
File "./mdp3.py", line 5, in <module>
import httplib
File "/usr/lib/python2.7/httplib.py", line 73, in <module>
from urlparse import urlsplit
File "/usr/lib/python2.7/urlparse.py", line 321, in <module>
for a in _hexdig for b in _hexdig)
File "/usr/lib/python2.7/urlparse.py", line 321, in <genexpr>
for a in _hexdig for b in _hexdig)
ValueError: invalid literal for int() with base 16: '07'
由于它发生在脚本执行任何操作之前,我担心我的 python 安装中可能出现了问题。但在我做任何激烈的事情之前,我想确定我是否误解了异常。