אנחנו משיקים ב-Earth Engine
רמות מכסה לשימוש לא מסחרי כדי להגן על משאבי מחשוב משותפים ולהבטיח ביצועים אמינים לכולם. כל הפרויקטים הלא מסחריים יצטרכו לבחור רמת מכסת שימוש עד
27 באפריל 2026, אחרת הם ישתמשו ברמת הקהילה כברירת מחדל. המיכסות לפי רמה ייכנסו לתוקף בכל הפרויקטים (ללא קשר לתאריך הבחירה של הרמה) ב-
27 באפריל 2026.
מידע נוסף
ee.List.add
קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
מוסיף את הרכיב לסוף הרשימה.
| שימוש | החזרות |
|---|
List.add(element) | רשימה |
| ארגומנט | סוג | פרטים |
|---|
זה: list | רשימה | |
element | אובייקט | |
דוגמאות
עורך הקוד (JavaScript)
print(ee.List([]).add('b')); // ["b"]
print(ee.List(['a']).add('b')); // ["a","b"]
print(ee.List(['a']).add(ee.String('b'))); // ["a","b"]
print(ee.List(['a']).add(1)); // ["a",1]
print(ee.List(['a']).add(ee.Number(1))); // ["a",1]
print(ee.List(['a']).add(true)); // ["a",true]
print(ee.List(['a']).add([])); // ["a",[]]
print(ee.List(['a']).add(ee.List([]))); // ["a",[]]
print(ee.List(['a']).add(['b'])); // ["a",["b"]]
print(ee.List(['a']).add(ee.List(['b']))); // ["a",["b"]]
print(ee.List(['a']).add(ee.Dictionary())); // ["a",{}]
print(ee.List(['a']).add(ee.Dictionary({b: 'c'}))); // ["a",{"b":"c"}]
// 0: a
// 1: Image (1 band)
print(ee.List(['a']).add(ee.Image.constant(1)));
// ["a",{"type":"ImageCollection","bands":[]}]
print(ee.List(['a']).add(ee.ImageCollection([])));
הגדרת Python
מידע על Python API ועל שימוש ב-geemap לפיתוח אינטראקטיבי מופיע בדף
Python Environment.
import ee
import geemap.core as geemap
Colab (Python)
display(ee.List([]).add('b')) # ['b']
display(ee.List(['a']).add('b')) # ['a', 'b']
display(ee.List(['a']).add(ee.String('b'))) # ['a', 'b']
display(ee.List(['a']).add(1)) # ['a', 1]
display(ee.List(['a']).add(ee.Number(1))) # ['a', 1]
display(ee.List(['a']).add(True)) # ['a', True]
display(ee.List(['a']).add([])) # ['a', []]
display(ee.List(['a']).add(ee.List([]))) # ['a', []]
display(ee.List(['a']).add(['b'])) # ['a', ['b']]
display(ee.List(['a']).add(ee.List(['b']))) # ['a', ['b']]
display(ee.List(['a']).add(ee.Dictionary())) # ['a', {}]
# ['a', {'b': 'c'}]
display(ee.List(['a']).add(ee.Dictionary({'b': 'c'})))
# 0: a
# 1: Image (1 band)
display(ee.List(['a']).add(ee.Image.constant(1)))
# ["a", {"type":"ImageCollection", "bands":[]}]
display(ee.List(['a']).add(ee.ImageCollection([])))
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2025-10-30 (שעון UTC).
[null,null,["עדכון אחרון: 2025-10-30 (שעון UTC)."],[],["The `List.add(element)` function appends an element to the end of a list. It takes an object as an argument (`element`), which can be any data type. The function modifies the list by adding the provided element at the end. It returns the modified list. The examples show different elements added to a list, including strings, numbers, booleans, empty lists, and even more complex data structures like dictionaries, images, and image collections.\n"]]