AttributeError: 'str' object has no attribute 'handle_error'
File "D:\System Files\Documents\EclipseWorkspace\Test\src\Baike_spider\spider_main.py", line 37, in <module>
obj_spider.craw(root_url)
File "D:\System Files\Documents\EclipseWorkspace\Test\src\Baike_spider\spider_main.py", line 32, in craw
self.outputer.ouput_html()
File "D:\System Files\Documents\EclipseWorkspace\Test\src\Baike_spider\html_outputer.py", line 19, in ouput_html
fout=write("<html>")
File "C:\Python27\lib\asyncore.py", line 95, in write
obj.handle_error()
AttributeError: 'str' object has no attribute 'handle_error'