Wprowadzamy w Earth Engine
poziomy limitów niekomercyjnych, aby chronić współdzielone zasoby obliczeniowe i zapewnić niezawodną wydajność dla wszystkich. Projekty niekomercyjne domyślnie korzystają z poziomu Społeczność, ale w każdej chwili możesz zmienić poziom projektu.
Google uses AI technology to translate content into your preferred language. AI translations can contain errors.
ee.List
Zadbaj o dobrą organizację dzięki kolekcji
Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.
Tworzy nową listę.
| Wykorzystanie | Zwroty |
|---|
ee.List(list) | Lista |
| Argument | Typ | Szczegóły |
|---|
list | List[Object]|Object | Lista lub obliczony obiekt. |
Przykłady
Edytor kodu (JavaScript)
print(ee.List([])); // []
print(ee.List([null])); // [null]
print(ee.List([true])); // [true]
print(ee.List([1])); // [1]
print(ee.List([ee.Number(1)])); // [1]
print(ee.List(['a'])); // ["a"]
print(ee.List([[]])); // [[]]
print(ee.List([ee.List([])])); // [[]]
print(ee.List([[], [[]], [1, [], 'a']])); // [[],[[]],[1,[],"a"]]
Konfiguracja Pythona
Informacje o interfejsie API dla Pythona oraz o używaniu geemap do interaktywnego programowania znajdziesz na stronie środowiska Python.
import ee
import geemap.core as geemap
Colab (Python)
display(ee.List([])) # []
display(ee.List([None])) # [None]
display(ee.List([True])) # [True]
display(ee.List([1])) # [1]
display(ee.List([ee.Number(1)])) # [1]
display(ee.List(['a'])) # ['a']
display(ee.List([[]])) # [[]]
display(ee.List([ee.List([])])) # [[]]
display(ee.List([[], [[]], [1, [], 'a']])) # [[], [[]], [1, [], 'a']]
O ile nie stwierdzono inaczej, treść tej strony jest objęta licencją Creative Commons – uznanie autorstwa 4.0, a fragmenty kodu są dostępne na licencji Apache 2.0. Szczegółowe informacje na ten temat zawierają zasady dotyczące witryny Google Developers. Java jest zastrzeżonym znakiem towarowym firmy Oracle i jej podmiotów stowarzyszonych.
Ostatnia aktualizacja: 2026-01-08 UTC.
[null,null,["Ostatnia aktualizacja: 2026-01-08 UTC."],[],["The `ee.List()` function creates a new list object. It accepts a list or computed object as input and returns a `List`. The function can handle various data types within the list, including null, boolean, numbers, strings, and nested lists. Examples demonstrate creating lists with different contents in both JavaScript and Python, showing the structure and content of the newly created lists. The `getInfo()` is needed to retrieve the data in the python examples.\n"]]