crop_pc() takes 4 positional arguments but 5 were given
时间: 2023-10-31 12:43:25 浏览: 99
Image_Crop_Highresolution.rar_crop_crop image_high
This error message indicates that the function "crop_pc()" is defined to take 4 arguments, but when it was called, 5 arguments were given. This can happen if there is an extra argument passed to the function, or if the function definition is incorrect.
To fix this error, check the function definition to make sure it only requires 4 arguments, and then check the code where the function is called to make sure it only passes 4 arguments. If there is an extra argument that is needed, add it to the function definition and adjust the code where the function is called accordingly.
阅读全文