> ## Documentation Index
> Fetch the complete documentation index at: https://rpa.bazhuayu.com/helpcenter/llms.txt
> Use this file to discover all available pages before exploring further.

# 多维列表转一维列表

## 一、指令概述

用于将嵌套的多维列表（如列表中包含子列表）“扁平化” 为一维列表，适用于数据格式统一、批量处理等场景，可解决嵌套列表无法直接遍历、统计的问题。

<img src="https://mintcdn.com/bazhuayu-rpa-docs/2wHVlBZR5NSu2FR2/helpcenter/commands/custom-commands/STxtrDNr/images/fi6uq3cv-01.png?fit=max&auto=format&n=2wHVlBZR5NSu2FR2&q=85&s=d2f1da498eb585b21c48e3151fab6bc6" alt="image" width="811" height="370" data-path="helpcenter/commands/custom-commands/STxtrDNr/images/fi6uq3cv-01.png" />

## 二、调用参数配置参数名称配置说明约束规则多维列表待扁平化的嵌套列表（如\[\[1,2], \[3,4,5], \[6]]）必填；支持任意层级的嵌套列表生成的变量存储扁平化后一维列表的变量名称必填；用于承接输出结果，供下游指令调用

## 三、输出说明

<img src="https://mintcdn.com/bazhuayu-rpa-docs/2wHVlBZR5NSu2FR2/helpcenter/commands/custom-commands/STxtrDNr/images/fi6uq3cv-02.png?fit=max&auto=format&n=2wHVlBZR5NSu2FR2&q=85&s=9f72e1b16a6517502ceb1998a5eb75ba" alt="image" width="1176" height="260" data-path="helpcenter/commands/custom-commands/STxtrDNr/images/fi6uq3cv-02.png" />

## 四、典型操作示例

<Info>
  使用指令过程中遇到问题？前往 [八爪鱼RPA 开发者社区问答板块](https://rpa.bazhuayu.com/community/questions) 提问，获取官方与社区帮助。
</Info>
