python 行列互换
#!/usr/bin/env python
#coding=utf-8
'''
表头信息
0 1 2 3 4 5 6 7 8 9 10
名字显示 标题 日期 厂区 班别 客户 每人工时 总工时 审批人 备注 工时确认
'''
import xlrd,xlwt
import datetime
xlsfile = u"工时记录.xlsx"
xlsfile_wt=u"工时_已拆分.xls"
#style0 = xlwt.easyxf('font: name Times New Roman, color-index red, bold on')
style1 = xlwt.easyxf(num_format_str='YYYY-MM-DD')
book = xlwt.Workbook(encoding='utf-8', style_compression=0)
sheet_wt=book.add_sheet('原始数据',cell_overwrite_ok=True)
#sheet_wt_2=book.add_sheet('二月数据'.decode("utf-8"),cell_overwrite_ok=True)
def merge_cell(sheet):
"""
拆分合并的单元格,合并单元格的最后一个单元格的值映射到其他被合并的单元格
参数:
------------------------------------------------------
sheet:
"""
mc = {
}
if sheet