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.
私は Python を使用urllib2.urlopenしましたが、サーバーから 500 エラーが発生しました。エラーのテキストを見つけるにはどうすればよいですか? 有益な情報になることを願っています。
urllib2.urlopen
from urllib2 import urlopen, HTTPError try: f = urlopen(url) except HTTPError, e: print(e.read())