python 2.5 是否允许您传递异常参数?
try: raise Exception("argument here")
except Exception: print Exception.args
我对上面的代码没有运气——我知道你在 Python 2.7 中就是这样做的——这不是在 Python 2.5 中吗?
python 2.5 是否允许您传递异常参数?
try: raise Exception("argument here")
except Exception: print Exception.args
我对上面的代码没有运气——我知道你在 Python 2.7 中就是这样做的——这不是在 Python 2.5 中吗?