我是靠谱客的博主 稳重鱼,这篇文章主要介绍AttributeError: '_io.BufferedWriter' object has no attribute 'wirte',现在分享给大家,希望可以做个参考。

查了好久资料,也试了无数方法,原来是自己单词写错了,我就一直想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()))

。。。

最后

以上就是稳重鱼最近收集整理的关于AttributeError: '_io.BufferedWriter' object has no attribute 'wirte'的全部内容,更多相关AttributeError:内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(131)

评论列表共有 0 条评论

立即
投稿
返回
顶部