__init__.py 文件源码

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

项目:MyFriend-Rob 作者: lcheniv 项目源码 文件源码
def __eq__(self, other):
        '''od.__eq__(y) <==> od==y.  Comparison to another OD is order-sensitive
        while comparison to a regular mapping is order-insensitive.

        '''
        if isinstance(other, OrderedDict):
            return dict.__eq__(self, other) and all(map(_eq, self, other))
        return dict.__eq__(self, other)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号