TypeError: Missing 1 required positional argument: 'self'

后端 未结 6 823
借酒劲吻你
借酒劲吻你 2020-11-22 02:18

I am new to python and have hit a wall. I followed several tutorials but cant get past the error:

Traceback (most recent call last):
  File \"C:\\Users\\Dom\         


        
6条回答
  •  借酒劲吻你
    2020-11-22 03:13

    You can also get this error by prematurely taking PyCharm's advice to annotate a method @staticmethod. Remove the annotation.

提交回复
热议问题