为什么在一个文件中的多个类不能单独调用?

python 从入门到实践 9-8的练习题:

class User():
    def __init__(self, first_name, last_name):
        self.first_name = first_name
        self.last_name = last_name
        self.sex = 'man'
        self.tall = ''
        self.login_attempts = 0

    def increment_login_attempts(self):
        self.login_attempts += 1

    def reset_login_attempts(self):
        self.login_attempts = 0  #

    def describe_user(self):
        if self.tall:
            man = f'first_name: {self.first_name.title()} last_name: {self.last_name.title()} Sex: {self.sex.title()} Tall: {self.tall.upper()}'
            print(man)
        else:
            woman = f'first_name: {self.first_name.title()}last_name: {self.last_name.title()}Sex: {self.sex.title()}'
            print(woman)

    def greet_user(self):
        if self.sex == 'man':
            print(f'Hello Mr. {self.first_name.title()} {self.last_name.title()}.\n\t Welcom to the python.')
        else:
            print(f'Hello Mis. {self.first_name.title()} {self.last_name.title()}.\n\t Welcom to the python.')


"""创建新类,继承上类"""


class Admin(User):
    """管理员权限说明"""

    def __init__(self, first_name, last_name):
        """初始化父类属性"""
        super().__init__(first_name, last_name)
        self.privileges = Privileges()


class Privileges():

    def __init__(self):
        self.privileges = []  

    def show_privileges(self):
        show = f'You have {self.privileges}.'
        print(show)


a = Admin('liu', 'rui')
a.sex = 'woman'
**a.privileges.privileges = ['can Add post', 'can delete post', 'can ban user']  **
**a.privileges.show_privileges()**


标注行为什么更改为:
Privileges.privileges = ['can Add post', 'can delete post', 'can ban user']
Privileges.show_privileges()
就错误呢?定义的Privileges类也没有继承Admin啊?

Privileges是类名
privileges是实例变量
类名用实例变量是不可以的,类名要用类变量

class Privileges():
    test = '你好'
    def __init__(self):
        self.privileges = []
        Privileges.test = "我好"

    def show_privileges(self):
        show = f'You have {self.privileges}.'
        print(show)


print(Privileges.test)

虽然不是我想要的,但又多了一个知识。
已经自己研究明白了。
感谢