Exception对象无message属性
为啥我的总是显示Exception对象无message这个属性?是版本的原因吗,我的Python版本是3.x
Traceback (most recent call last): File "use_urllib2.py", line 47, inrequest_method() File "use_urllib2.py", line 29, in request_method print(e.message) AttributeError: 'ConnectTimeout' object has no attribute 'message'