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中有这段代码:
resp = mechanize.Request(url, data) cj.add_cookie_header(resp) res1 = mechanize.urlopen(resp)
如何查看输出 HTML?
只需打印您的回复:
resp = mechanize.Request(url, data) cj.add_cookie_header(resp) res1 = mechanize.urlopen(resp) print res1.read()