python操做Excell

用到的模块 xlrd:读取excell表中的数据 xlwt:建立一个excell文件,而后对此文件进行写入操做以及保存 下面代码有详细的注释 向excell内写入数据 import xlwt file = xlwt.Workbook(encoding = 'utf-8') #建立Workbook,设置字符编码为utf-8,默认是ascii sheet = file.add_sheet('data'
相关文章
相关标签/搜索