我在python中有这段代码:
resp = mechanize.Request(url, data)
cj.add_cookie_header(resp)
res1 = mechanize.urlopen(resp)
如何查看输出HTML?
答案 0 :(得分:2)
只需打印您的回复:
resp = mechanize.Request(url, data)
cj.add_cookie_header(resp)
res1 = mechanize.urlopen(resp)
print res1.read()