When Python is running: takes no arguments error message

When Python is running: TypeError: Box1() takes no arguments
Insert picture description here
may have the following two easy errors:
1. Init is written as int
2. __inint__ This place is surrounded by two "_"
inint () has a professional name It is called: Constructor, which is not displayed for instance method.

Insert picture description here
The reason for this is probably your code indentation .

Guess you like

Origin blog.csdn.net/guangwulv/article/details/101225431