高阶函数1.3flatten函数

27 阅读1分钟

(五)flatten函数

作用: 将二维数组中的元素展平至单数组中。

语法: 二维数组.flatten。不需要写()