在getPhoto类下写了个CatchPICFromVideo函数

missing 1 required positional argument:解决方案调用它的时候
missing 1 required positional argument:解决方案报错CatchPICFromVideo()missing 1 required positional argument
解决方案一:
调用时在类getPhoto后加括号代表实例化,即类名().方法名()
解决方案二:
如果继续类名.方法名()需要在CatchPICFromVideo方法前加上@classmethod

missing 1 required positional argument:解决方案

相关文章:

  • 2022-02-23
  • 2022-12-23
  • 2021-07-05
  • 2022-12-23
猜你喜欢
  • 2021-11-22
  • 2022-03-10
  • 2022-12-23
  • 2021-08-29
  • 2021-06-22
  • 2021-08-20
  • 2021-12-04
相关资源
相似解决方案