TypeError: Missing 1 required positional argument: 'self'

后端 未结 6 829
借酒劲吻你
借酒劲吻你 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 02:55

    Works and is simpler than every other solution I see here :

    Pump().getPumps()
    

    This is great if you don't need to reuse a class instance. Tested on Python 3.7.3.

提交回复
热议问题