Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我使用 Pythonurllib2.urlopen并从服务器收到 500 错误。如何找到错误的文本?我希望它有有用的信息。
urllib2.urlopen
from urllib2 import urlopen, HTTPError try: f = urlopen(url) except HTTPError, e: print(e.read())