dal.py 文件源码

python
阅读 32 收藏 0 点赞 0 评论 0

项目:spc 作者: whbrewer 项目源码 文件源码
def __getitem__(self, k):
        key=str(k)
        _extra = self.__dict__.get('_extra', None)
        if _extra is not None:
            v = _extra.get(key, None)
            if v:
                return v
        m = REGEX_TABLE_DOT_FIELD.match(key)
        if m:
            try:
                return ogetattr(self, m.group(1))[m.group(2)]
            except (KeyError,AttributeError,TypeError):
                key = m.group(2)
        return ogetattr(self, key)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号