TypeError: __init__() takes 1 positional argument but 2 were given
时间: 2023-11-07 10:35:47 浏览: 208
TypeError: _queue_reduction(): incompatible function arguments.
This error occurs when you try to call a function or method with more arguments than it is expecting. In this case, it looks like you are trying to initialize an object by calling its `__init__()` method with two arguments, but it is only expecting one.
To fix this error, you need to check the documentation for the object you are trying to initialize and make sure you are passing the correct number of arguments to its `__init__()` method. If you are unsure, you can also try printing out the object and its attributes to see what arguments it requires.
阅读全文