pipelines.py 文件源码

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

项目:landchina-spider 作者: sundiontheway 项目源码 文件源码
def init_new_excel(self, filename):
        xls = xlwt.Workbook()
        sheet = xls.add_sheet('sheet1', cell_overwrite_ok=True)
        sheet.write(0, 0, u'???')
        sheet.write(0, 1, u'??????')
        sheet.write(0, 2, u'?????')
        sheet.write(0, 3, u'?????')
        sheet.write(0, 4, u'???')
        sheet.write(0, 5, u'????')
        sheet.write(0, 6, u'????')
        sheet.write(0, 7, u'??(??)')
        sheet.write(0, 8, u'????')
        sheet.write(0, 9, u'????')
        sheet.write(0, 10, u'????')
        sheet.write(0, 11, u'??????')
        sheet.write(0, 12, u'????')
        sheet.write(0, 13, u'????')
        sheet.write(0, 14, u'????(??)')
        sheet.write(0, 15, u'??????')
        sheet.write(0, 16, u'??')
        sheet.write(0, 17, u'??')
        sheet.write(0, 18, u'??????')
        sheet.write(0, 19, u'??????')
        sheet.write(0, 20, u'??????')
        sheet.write(0, 21, u'??????')
        xls.save(os.path.join(XLS_FILE_DIR, filename + '.xls'))
        self.handlers.append(xls)
        self.file_mapper[filename] = len(self.handlers) - 1
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号