This error message occurs when a function is called with more arguments than it expects. Specifically, the function "getname()" is defined to take one argument, but it is being called with two arguments.

To fix this error, you need to either modify the function definition to accept two arguments or modify the function call to only pass one argument.

TypeError getname takes 1 positional argument but 2 were given

原文地址: http://www.cveoy.top/t/topic/bvZo 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录