ee.Dictionary.keys

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

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

أمثلة

محرّر الرموز البرمجية (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('The list of dictionary keys', dict.keys());

إعداد 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('The list of dictionary keys:', dic.keys().getInfo())