array() takes from 1 to 2 positional arguments but 4 were given
时间: 2023-10-31 10:38:11 浏览: 231
django报错:add_atr() takes 0 positional arguments but 1 was given
This error message is indicating that the `array()` function was called with too many arguments. The `array()` function can take between 1 and 2 positional arguments depending on how it is used, but in this case, it was called with 4 arguments.
To resolve this error, you should check the code that is calling the `array()` function and make sure that it is passing the correct number of arguments. If you are unsure how many arguments the `array()` function should be taking, you can consult the documentation or look up examples of how the function is used in other code.
阅读全文