python urllib2模块开启调试模式 Home » 编程开发 » python urllib2模块开启调试模式 import urllib2handler=urllib2.HTTPHandler(debuglevel=1)opener = urllib2.build_opener(handler)urllib2.install_opener(opener)resp=urllib2.urlopen('http://www.google.com').read() 转载请注明:逝去日子的博客 » python urllib2模块开启调试模式 流过泪的眼睛更明亮,滴过血的心灵更坚强!