使用DebugLog

来源:互联网 发布:知乎周刊plus 编辑:程序博客网 时间:2024/06/06 18:03

”’
开启DebugLog 调试log日志
”’

httphd = urllib.request.HTTPHandler(debuglevel=1)httpshd = urllib.request.HTTPSHandler(debuglevel=1)opener = urllib.request.build_opener(httphd,httpshd)urllib.request.install_opener(opener)data = urllib.request.urlopen('http://www.biaud.com')print(data)
0 0
原创粉丝点击