تطرح 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 للحصول على معلومات حول واجهة برمجة التطبيقات Python واستخدام
geemap للتطوير التفاعلي.
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 (حسب التوقيت العالمي المتفَّق عليه)
[null,null,["تاريخ التعديل الأخير: 2025-10-30 (حسب التوقيت العالمي المتفَّق عليه)"],[],["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"]]