Szótárak kezelése a Szótár értékének lekérése művelettel a Parancsokban
To get the value for a particular key in a dictionary, you can use the Get Dictionary Value action and specify the name of the key. To get the daily forecast, add the Get Dictionary Value action and set it to daily
.
If you want the weather summary, you can use the Get Dictionary Value action again with summary
.
The detailed forecast for each day is stored within daily
as a dictionary called data
.
Notice that the data
dictionary is actually a list of dictionaries, represented at the start by the left bracket ([
) in JSON. A fenti képek egy nyolc elemből álló lista (amelyet a keresési mező feletti oldalpontok jelölnek) a kimenete a Szótár értékének lekérése műveletnek. This represents the forecast data for each of the days requested from the API, which returns today and the next seven days to become a list of eight dictionaries of data.
Egy szótár több elemével végzett munkáról további információkat a következő részben talál: Listák kezelése az Ismétlés mindegyikkel művelettel a Parancsokban.