Skip to content

super() takes at least 1 argument (0 given) #7

Open
@OctopusLian

Description

@OctopusLian

练习 9-6,9-7,9-8时出现的错误

Traceback (most recent call last):
  File "./Python-Crash-Course-Homework/chapter09/9-8.py", line 44, in <module>
    eric = Admin('eric', 'matthes', 'e_matthes', 'e_matthes@example.com', 'alaska')
  File "./Python-Crash-Course-Homework/chapter09/9-8.py", line 24, in __init__
    super().__init__(first_name, last_name, username, email, location)
TypeError: super() takes at least 1 argument (0 given)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions