إشعار: يجب 
إثبات الأهلية للاستخدام غير التجاري لجميع المشاريع غير التجارية المسجّلة لاستخدام Earth Engine قبل 
15 أبريل 2025 من أجل الحفاظ على إمكانية الوصول إليها. إذا لم يتم تأكيد حسابك بحلول 26 سبتمبر 2025، قد يتم تعليق إمكانية الوصول إليه.
  
        
 
       
     
  
  
  
    
  
  
  
    
      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)
    
    
  print(ee.List([]).add('b').getInfo())                # ['b']
print(ee.List(['a']).add('b').getInfo())             # ['a', 'b']
print(ee.List(['a']).add(ee.String('b')).getInfo())  # ['a', 'b']
print(ee.List(['a']).add(1).getInfo())             # ['a', 1]
print(ee.List(['a']).add(ee.Number(1)).getInfo())  # ['a', 1]
print(ee.List(['a']).add(True).getInfo())  # ['a', True]
print(ee.List(['a']).add([]).getInfo())              # ['a', []]
print(ee.List(['a']).add(ee.List([])).getInfo())     # ['a', []]
print(ee.List(['a']).add(['b']).getInfo())           # ['a', ['b']]
print(ee.List(['a']).add(ee.List(['b'])).getInfo())  # ['a', ['b']]
print(ee.List(['a']).add(ee.Dictionary()).getInfo())  # ['a', {}]
# ['a', {'b': 'c'}]
print(ee.List(['a']).add(ee.Dictionary({'b': 'c'})).getInfo())
# 0: a
# 1: Image (1 band)
print(ee.List(['a']).add(ee.Image.constant(1)).getInfo())
# ["a", {"type":"ImageCollection", "bands":[]}]
print(ee.List(['a']).add(ee.ImageCollection([])).getInfo())
  
  
  
  
  
إنّ محتوى هذه الصفحة مرخّص بموجب ترخيص Creative Commons Attribution 4.0 ما لم يُنصّ على خلاف ذلك، ونماذج الرموز مرخّصة بموجب ترخيص Apache 2.0. للاطّلاع على التفاصيل، يُرجى مراجعة سياسات موقع Google Developers. إنّ Java هي علامة تجارية مسجَّلة لشركة Oracle و/أو شركائها التابعين.
  تاريخ التعديل الأخير: 2025-07-26 (حسب التوقيت العالمي المتفَّق عليه)
  
  
  
    
      [null,null,["تاريخ التعديل الأخير: 2025-07-26 (حسب التوقيت العالمي المتفَّق عليه)"],[],["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"]]