def unzip(data):
    """
    unzip([[1,2,3], [1,2,3], ..]) -> [[1,1,..], [2,2,..], [3,3,..]]
    """
    try:
        out_type = type(data)
        in_type = type(data[0])
        return out_type([in_type(it) for it in zip(*data)])  # 尝试还原类型，不一定都能成功
    except:  # noqa
        return zip(*data)