missing 1 required positional argument:解决方案-CSDN博客

网站介绍:文章浏览阅读1.6w次。在getPhoto类下写了个CatchPICFromVideo函数调用它的时候报错CatchPICFromVideo()missing 1 required positional argument解决方案一:调用时在类getPhoto后加括号代表实例化,即类名().方法名()解决方案二:如果继续类名.方法名()需要在CatchPICFromVideo方法前加上@classmethod..._missing 1 required positional argument: