📜  使用点访问 python 字典值 - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:30.407000             🧑  作者: Mango

代码示例1
class dotdict(dict):
    """dot.notation access to dictionary attributes"""
    __getattr__ = dict.get
    __setattr__ = dict.__setitem__
    __delattr__ = dict.__delitem__