公告:所有在
2025 年 4 月 15 日之前注册使用 Earth Engine 的非商业项目都必须
验证是否符合非商业性质的资格条件,才能继续使用 Earth Engine。
ee.List.flatten
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-26。
[null,null,["最后更新时间 (UTC):2025-07-26。"],[[["\u003cp\u003eFlattens a nested list (list containing sublists) into a single, flat list containing all the elements.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eflatten\u003c/code\u003e function operates on a given list and transforms it into a new list with all sublist elements merged into the top level.\u003c/p\u003e\n"],["\u003cp\u003eIt simplifies list structures by removing hierarchy and presenting all elements in a sequential order.\u003c/p\u003e\n"]]],["The `List.flatten()` function transforms a list containing sublists into a single, flattened list. It takes one argument, `this: list`, which represents the list to be flattened. The function returns a new `List` object containing all elements from the original list and its sublists, now merged into a single level. No other input parameters or customization options are available.\n"],null,["# ee.List.flatten\n\nFlattens any sublists into a single list.\n\n\u003cbr /\u003e\n\n| Usage | Returns |\n|------------------|---------|\n| List.flatten`()` | List |\n\n| Argument | Type | Details |\n|--------------|------|---------|\n| this: `list` | List | |"]]