📜  对受保护成员的非检查访问 - Python 代码示例

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

代码示例1
class A(object):
    def __init__(self, data):
        self._data = data
    def _equals(self, other):
        # noinspection PyProtectedMember
        return self._data == other._data