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.set
Zadbaj o dobrą organizację dzięki kolekcji
Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.
Zastępuje wartość w określonej pozycji na liście elementem. Ujemny indeks liczy się wstecz od końca listy.
| Wykorzystanie | Zwroty |
|---|
List.set(index, element) | Lista |
| Argument | Typ | Szczegóły |
|---|
to: list | Lista | |
index | Liczba całkowita | |
element | Obiekt | |
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: 2025-07-26 UTC.
[null,null,["Ostatnia aktualizacja: 2025-07-26 UTC."],[],["The `List.set(index, element)` function replaces a list element at a given position. The `index` argument, an integer, determines the position, and negative values indicate counting from the end. The `element`, of any object type, is the new value. This operation modifies the original list and returns the updated list. No other arguments are required besides the list itself.\n"]]