0
Follow
0
View

What is the reason for this error

danny11131 注册会员
2023-02-28 08:20

The function only takes two arguments, but you passed three

ding_ni_na 注册会员
2023-02-28 08:20

This answer cites ChatGPT
as the reason for an error in the number of arguments when running python programs.
Cause:
1. Function defined in class does not set self;
2. We have already initialized a function with the same name as the class, so when we call the class again, we call the function instead of the class

About the Author

Question Info

Publish Time
2023-02-28 08:20
Update Time
2023-02-28 08:20