atpthings.dict.get_values#
- atpthings.dict.get_values(dict_: dict, keys: list) list #
Get values of specific keys from dictionary to list.
- Parameters:
- dict_dict
Dictionary.
- keyslist
List of keys wonted to be extracted.
- Returns:
- dict
List of values with specificated key.
Examples
>>> dict_in = {"one": 1, "two": 2, "three": 3} >>> keys_list = ["one", "three"] >>> atpthings.util.dictionary.get_values(dict_in, keys_list) >>> [1, 3]