标签:读写 val book extend -o code import 操作 xls
import xlrd,xlwt data = xlrd.open_workbook(‘a.xlsx‘) #读 table = data.sheets()[0] data_list = [] data_list.extend(table.row_values(0)) for item in data_list: print item ################# # 写 data = xlwt.Workbook() table = data.add_sheet(‘b‘) table.write(0, 1, ‘01‘) table.write(0, 2, ‘www‘) data.save(‘b.xls‘)
http://wenqiang-china.github.io/2016/05/13/python-opetating-excel/
标签:读写 val book extend -o code import 操作 xls
原文地址:http://www.cnblogs.com/wanghaonull/p/6606644.html