config_ops

可能对配置字典有用的实用工具。

函数

merge_dicts_recursively(*dicts)[source]

创建一个字典,其键集是所有输入字典的并集。每个键的值基于列表中第一个包含该键的字典。

列表中靠后的字典具有更高的优先级

当值为字典时,递归应用此操作

参数:

dicts (dict[Any, Any])

返回类型:

dict[Any, Any]

update_dict_recursively(current_dict, *others)[source]
参数:
  • current_dict (dict[Any, Any])

  • others (dict[Any, Any])

返回类型: