查了好久资料,也试了无数方法,原来是自己单词写错了,我就一直想f怎么就没这个方法了。。。。
write居然也能写成wirte
with open(filename+'/'+str(x)+'.html','wb')as f:
f.wirte((response.read()))
改:
with open(filename+'/'+str(x)+'.html','wb')as f:
f.write((response.read()))
。。。
查了好久资料,也试了无数方法,原来是自己单词写错了,我就一直想f怎么就没这个方法了。。。。
write居然也能写成wirte
with open(filename+'/'+str(x)+'.html','wb')as f:
f.wirte((response.read()))
改:
with open(filename+'/'+str(x)+'.html','wb')as f:
f.write((response.read()))
。。。