ee.Algorithms.Dictionary
Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
Tạo một từ điển.
Cách sử dụng | Giá trị trả về |
---|
ee.Algorithms.Dictionary(input) | Từ điển |
Đối số | Loại | Thông tin chi tiết |
---|
input | Đối tượng, mặc định: null | Một đối tượng cần chuyển đổi thành từ điển. Một từ điển JSON hoặc một danh sách các cặp khoá/giá trị xen kẽ. Khoá phải là chuỗi. |
Trừ phi có lưu ý khác, nội dung của trang này được cấp phép theo Giấy phép ghi nhận tác giả 4.0 của Creative Commons và các mẫu mã lập trình được cấp phép theo Giấy phép Apache 2.0. Để biết thông tin chi tiết, vui lòng tham khảo Chính sách trang web của Google Developers. Java là nhãn hiệu đã đăng ký của Oracle và/hoặc các đơn vị liên kết với Oracle.
Cập nhật lần gần đây nhất: 2025-07-26 UTC.
[null,null,["Cập nhật lần gần đây nhất: 2025-07-26 UTC."],[[["\u003cp\u003eCreates a server-side dictionary object, which is useful for organizing and accessing data.\u003c/p\u003e\n"],["\u003cp\u003eAccepts input in the form of a JSON dictionary or a list of key-value pairs, with keys always being strings.\u003c/p\u003e\n"],["\u003cp\u003eIf no input is provided, it defaults to creating an empty dictionary.\u003c/p\u003e\n"]]],["The function `ee.Algorithms.Dictionary` creates a dictionary object. It accepts a single argument, `input`, which can be either a JSON dictionary or a list of key-value pairs. The keys within the `input` must be strings. This function returns a dictionary data structure based on the provided input.\n"],null,["# ee.Algorithms.Dictionary\n\nConstructs a dictionary.\n\n\u003cbr /\u003e\n\n| Usage | Returns |\n|---------------------------------------|------------|\n| `ee.Algorithms.Dictionary(`*input*`)` | Dictionary |\n\n| Argument | Type | Details |\n|----------|-----------------------|--------------------------------------------------------------------------------------------------------------------------------|\n| `input` | Object, default: null | An object to convert to a dictionary. Either a JSON dictionary or a list of alternating key/value pairs. Keys must be strings. |"]]