读取托运单内容合并到汇总改单列表
    # 读取托运单内容合并到汇总改单列表
    def changeMergeToBill(t, d):
        # 遍历改单数据
        for i in range(len(t)):
            # 第一行不变
            if i == 0:
                continue
            # 按照运单号查找运单资料,空值读取原数据
            for x in d:
                if x[1] == t[i][1]:
                    for j in range(len(x)):
                        if t[i][j] == ‘‘:
                            t[i][j] = x[j]
        return t
原文:https://www.cnblogs.com/cbig/p/13967473.html