Earth Engine ขอแนะนำ
ระดับโควต้าที่ไม่ใช่เชิงพาณิชย์เพื่อปกป้องทรัพยากรการประมวลผลที่ใช้ร่วมกันและรับประกันประสิทธิภาพที่เชื่อถือได้สำหรับทุกคน โปรเจ็กต์ที่ไม่ใช่เชิงพาณิชย์ทั้งหมดจะต้องเลือกระดับโควต้าภายในวันที่
27 เมษายน 2026 หรือจะใช้ระดับชุมชนโดยค่าเริ่มต้นก็ได้ โควต้าระดับจะมีผลกับโปรเจ็กต์ทั้งหมด (ไม่ว่าวันที่เลือกระดับจะเป็นวันใด) ในวันที่
27 เมษายน 2026 ดูข้อมูลเพิ่มเติม
ee.List
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
สร้างลิสต์ใหม่
| การใช้งาน | การคืนสินค้า |
|---|
ee.List(list) | รายการ |
| อาร์กิวเมนต์ | ประเภท | รายละเอียด |
|---|
list | List[Object]|Object | รายการหรือออบเจ็กต์ที่คำนวณแล้ว |
ตัวอย่าง
ตัวแก้ไขโค้ด (JavaScript)
print(ee.List([])); // []
print(ee.List([null])); // [null]
print(ee.List([true])); // [true]
print(ee.List([1])); // [1]
print(ee.List([ee.Number(1)])); // [1]
print(ee.List(['a'])); // ["a"]
print(ee.List([[]])); // [[]]
print(ee.List([ee.List([])])); // [[]]
print(ee.List([[], [[]], [1, [], 'a']])); // [[],[[]],[1,[],"a"]]
การตั้งค่า Python
ดูข้อมูลเกี่ยวกับ Python API และการใช้ geemap เพื่อการพัฒนาแบบอินเทอร์แอกทีฟได้ที่หน้าสภาพแวดล้อม Python
import ee
import geemap.core as geemap
Colab (Python)
display(ee.List([])) # []
display(ee.List([None])) # [None]
display(ee.List([True])) # [True]
display(ee.List([1])) # [1]
display(ee.List([ee.Number(1)])) # [1]
display(ee.List(['a'])) # ['a']
display(ee.List([[]])) # [[]]
display(ee.List([ee.List([])])) # [[]]
display(ee.List([[], [[]], [1, [], 'a']])) # [[], [[]], [1, [], 'a']]
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2026-01-08 UTC
[null,null,["อัปเดตล่าสุด 2026-01-08 UTC"],[],["The `ee.List()` function creates a new list object. It accepts a list or computed object as input and returns a `List`. The function can handle various data types within the list, including null, boolean, numbers, strings, and nested lists. Examples demonstrate creating lists with different contents in both JavaScript and Python, showing the structure and content of the newly created lists. The `getInfo()` is needed to retrieve the data in the python examples.\n"]]