ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的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 ~~~