企业🤖AI智能体构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
~~~ #coding:utf-8 import urllib2 import re import zlib url_address = 'http://www.sina.com.cn' f = urllib2.urlopen(url_address) buf = f.read() buf = zlib.decompress(buf, 16+zlib.MAX_WBITS); #buf = buf.replace("\n","") print buf ~~~