def write_excels(self, document): outwb = openpyxl.Workbook() outws = outwb.create_sheet(index=0) for y, docs in enumerate(document): key = [doc for doc in docs] for x, ky in enumerate(key): outws.cell(y + 1, x + 1).value = docs[ky] outwb.save("xxx.x
熟话说万物皆有其存在的道理,为什么我突然想写<知识共享图文直播>这个系列呢?首先,我想的是记录自己学习的历程,在记录中加深自己对知识的理解,同时也希望自己的博文能帮助到其他数据库的初学者.其次,这也算借鉴了其他人的一个好的想法吧. 一.我们所处的环境 1.看窗体布局 2.了解目标表 二.数据导入MSFlexGrid控件中 [vb] view plain copy print ? Dim strSQL As String Dim strMsg As String Dim objRs As
# -*- coding: utf-8 -*- # Define your item pipelines here # # Don't forget to add your pipeline to the ITEM_PIPELINES setting # See: https://doc.scrapy.org/en/latest/topics/item-pipeline.html import csv import xlwt class GanjiPipeline(object): def __