def __getattr__(self, item):
    try:
        return self[item]
    except BaseException:
        raise TypeError('没有这个属性')
def __getattr__(self, item):
    try:
        return self[item]
    except BaseException:
        raise TypeError('没有这个属性')