LaGou.py 文件源码

python
阅读 28 收藏 0 点赞 0 评论 0

项目:Python-web-scraping 作者: LUCY78765580 项目源码 文件源码
def saveAll(self):
        book=xlwt.Workbook()
        sheet =book.add_sheet(str(self.keyword), cell_overwrite_ok=True)
        container=self.saveDetail()
        print u'\n????'
        print u'\n?????????...'
        heads=[u'????', u'????', u'????', u'??', u'??', u'??', u'????',u'????',u'????',u'??????']
        ii=0
        for head in heads:
            sheet.write(0,ii,head)
            ii+=1
        i=1
        for list in container:
            j=0
            for one in list:
                sheet.write(i, j, one)
                j+=1
            i+=1
        book.save(str(self.keyword)+'.xls')
        print u'\n?????'
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号