ee.Dictionary.values

تعرض قيم القاموس كقائمة. في حال عدم تحديد أي مفاتيح، يتم عرض جميع القيم بالترتيب الطبيعي لمفاتيح القاموس.

الاستخدامالمرتجعات
Dictionary.values(keys)قائمة
الوسيطةالنوعالتفاصيل
هذا: dictionaryالقاموس
keysقائمة، القيمة التلقائية: فارغة

أمثلة

محرّر الرموز البرمجية (JavaScript)

// A dictionary (e.g. results of ee.Image.reduceRegion of an S2 image).
var dict = ee.Dictionary({
  B1: 182,
  B2: 219,
  B3: 443
});

print('Values for selected keys converted to ee.List',
      dict.values(['B1', 'B2']));
print('Values for all keys converted to ee.List', dict.values());

إعداد Python

راجِع صفحة بيئة Python للحصول على معلومات حول واجهة برمجة التطبيقات Python واستخدام geemap للتطوير التفاعلي.

import ee
import geemap.core as geemap

Colab (Python)

# A dictionary (e.g. results of ee.Image.reduceRegion of an S2 image).
dic = ee.Dictionary({
    'B1': 182,
    'B2': 219,
    'B3': 443
})

print('Values for selected keys converted to ee.List:',
      dic.values(['B1', 'B2']).getInfo())
print('Values for all keys converted to ee.List:', dic.values().getInfo())