最新回答 / sS浩子_M
class HtmlOutputer(object): def __init__(self): self.datas=[] def collect_data(self,data): if data is None: return self.datas.append(data) def output_html(self): fout = open('output.html', 'w', e...
2016-03-16
import urillb2
response=urilb2.urlopen('http:www.baidu.com')//直接请求
printf response.getcode()//获取状态码
cont = response.read()//读取内容
response=urilb2.urlopen('http:www.baidu.com')//直接请求
printf response.getcode()//获取状态码
cont = response.read()//读取内容
2016-03-15
有出现这个错误吗? 'str' object has no attribute 'soup'
2016-03-14