ee.List.add
    
    
      
    
    
      
      با مجموعهها، منظم بمانید
    
    
      
      ذخیره و طبقهبندی محتوا براساس اولویتهای شما.
    
  
  
      
    
  
  
  
  
  
    
  
  
    
    
  
  
عنصر را به انتهای لیست اضافه می کند.
| استفاده | برمی گرداند | | List. add (element) | فهرست کنید | 
| استدلال | تایپ کنید | جزئیات | | این: list | فهرست کنید |  | 
| element | شیء |  | 
نمونه ها 
 ویرایشگر کد (جاوا اسکریپت) 
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([]))); راه اندازی پایتون
 برای اطلاعات در مورد API پایتون و استفاده از geemap برای توسعه تعاملی به صفحه محیط پایتون مراجعه کنید.
import ee
import geemap.core as geemap
 کولب (پایتون) 
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 License است. نمونه کدها نیز دارای مجوز Apache 2.0 License است. برای اطلاع از جزئیات، به خطمشیهای سایت Google Developers مراجعه کنید. جاوا علامت تجاری ثبتشده 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"]]