ee.String

יוצר מחרוזת חדשה.

שימושהחזרות
ee.String(string)מחרוזת
ארגומנטסוגפרטים
stringאובייקט|מחרוזתמחרוזת או אובייקט מחושב.

דוגמאות

עורך הקוד (JavaScript)

print(ee.String('I am a string'));  // I am a string

// Strings can use emoji.
print(ee.String('🧲⚡️👀'));  // 🧲⚡️👀

// Empty string.
var empty = ee.String('');
print(empty);  // ''
print(empty.length());  // 0

הגדרת Python

מידע על Python API ועל שימוש ב-geemap לפיתוח אינטראקטיבי מופיע בדף Python Environment.

import ee
import geemap.core as geemap

Colab (Python)

print(ee.String('I am a string').getInfo())  # I am a string

# Strings can use emoji.
print(ee.String('🧲⚡️👀').getInfo())  # 🧲⚡️👀

# Empty string.
empty = ee.String('')
print(empty.getInfo())  # ''
print(empty.length().getInfo())  # 0