ee.Dictionary.size

यह फ़ंक्शन, किसी डिक्शनरी में मौजूद एंट्री की संख्या दिखाता है.

इस्तेमालरिटर्न
Dictionary.size()पूर्णांक
आर्ग्यूमेंटटाइपविवरण
यह: 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 number of dictionary entries', dict.size());

Python सेटअप करना

Python API और इंटरैक्टिव डेवलपमेंट के लिए geemap का इस्तेमाल करने के बारे में जानकारी पाने के लिए, Python एनवायरमेंट पेज देखें.

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 number of dictionary entries:', dic.size().getInfo())