<reponame>singi2016cn/python-scaffold<gh_stars>0
from user import User


class Admin(User):
    """管理员"""

    def __init__(self, first_name, last_name):
        super(Admin, self).__init__(first_name, last_name)
        self.privileges = ['can add post', 'can delete post', 'can ban user']

    def show_privileges(self):
        print(self.privileges)


admin = Admin('sin', 'gi')
admin.show_privileges()
admin.describe_user()

from user import User


class Admin(User):
    """管理员"""

    def __init__(self, first_name, last_name):
        super(Admin, self).__init__(first_name, last_name)
        self.privileges = ['can add post', 'can delete post', 'can ban user']

    def show_privileges(self):
        print(self.privileges)


admin = Admin('sin', 'gi')
admin.show_privileges()
admin.describe_user()